You are on page 1of 26

2007 8

1 ................................................................................ 2
2 ...................................................................... 2
3 ............................................................ 2
3.1 ......................................................................... 2
3.2 ............................................................................. 3
3.3 ............................................................................... 3
4 ................................................................................ 4
4.1 ........................................................................... 4
4.2 ..................................................................... 5
4.3 ..................................................................... 6
5 .......................................................................... 7
5.1 ....................................................................... 7
5.2 ...................................................................... 10
5.3 .......................................................................... 11
6 XML ....................................................................... 13
6.1 .......................................................................... 13
6.2 ............................................................................ 13
6.3 .......................................................................... 15
6.4 ...................................................................... 16
6.5 .......................................................................... 18
6.6 .......................................................................... 19
6.7 ...................................................................... 21
6.8 .................................................................. 22
6.9 .................................................................. 23

CMMB

GB 2312-1980
GB/T 2659-2000
GB/T 4880.2-2000 23
GB/T 7408-2005
GB 13000.1-1993 UCS

GB/T 15273.1-1994
GB 18030-2005
GY/T 220.2-2006 2
GY/Z 174-2001
IETF RFC 1952 GZIP file format specification version 4.3, 1996
IETF RFC 2046 Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types, 1996
IETF RFC 3629 UTF-8, a transformation format of ISO 10646, 2003
XML Schema, W3C Recommendation, 2nd May 2001
3

3.1

3.1.1
content

3.1.2
event

3.1.3
service

3.1.4
schedule
/
3.1.5
electronic service guide
2


ESGESG

3.1.6
element
XML
3.1.7
data part
ESG
3.1.8
data block

3.1.9
ESG ESG service
ESG
3.1.10
ESG ESG basic description table
ESGESG
3.1.11
XML XML schema
XML
3.2

BCD Binary Coded Decimal


CA Conditional Access
CRC Cyclic Redundancy Check
ESG Electronic Service Guide
LSB Least Significant Bit
MJD Modified Julian Date
ServiceID Service Identifier
URI Universal Resource Identifier
UTC Universal Time, Co-ordinated
XML EXtensible Markup Language
bslbf bit string, left bit first
uimsbf unsigned integer, most significant bit first

3.3

3.3.1
1
3.3.2
<

>

==

CMMB
!=

3.3.3
++
1
3.3.4
=

ESG

4.1

ESG1

1 ESG
ESG2

MF_ID == 0

ESG

...

...

...

...

...

...

4
4.2

CMMB
a1
a2

...
an

b1

bn
2

...

...

...

m1
m2

...

...

b2

...

mn

5 ESG

4.3

ESG

...

...

...
6

5.1

ESGESG
7

1
1 ESG

bslbf

ESG

bslbf

12

uimsbf

uimsbf

uimsbf

bslbf

12

bslbf

bslbf

bslbf

1 ESG
7

CMMB

bslbf

ESG

uimsbf

bslbf

for i = 0; i < N1; i++


{

ESG

bslbf

ESG

16

uimsbf

bslbf

uimsbf

bslbf

bslbf

uimsbf

uimsbf

bslbf

ESG

bslbf

32

uimsbf

for i = 0; i < N2; i++


{

for j = 0; j < M; j++


{

}
}
CRC_32
}

8GY/T 220.2-20062
ESG
40150001
/0101ESG1

1204095CRC_32

4014

4115

4GY/T 220.2-20064

12GY/T 220.2-20063

60UTC1
UTC50240.5

4ESG2
2
(b3b2b1b0)

0000

GB2312

0001

GB18030

0010

GB13000.1

0011

UTF-8

01001111

ESG
4115N1
ESG
4ESGESG
ESG
16ESG3
3

0x0000 0x003F

0x0040 0x00FF

ESG

0x0100 0x01FF

0x0200 0x3FFF

0x4000 0x7FFF

0x8000 0xFFFF

4015N2

4ESGESG4
4 ESG
(b3b2b1b0)

0000

0001

0010

0011

0100

0101

01101111

CMMB

80128M

8ESG

40151
CRC_32
32 CRC_32GY/T 220.2-2006A
5.2

GY/T 220.2-2006201
8

N-1

...

CRC_32

32

40

16

24

5
5

uimsbf

bslbf

40

bslbf

16

uimsbf

24

bslbf

uimsbf

for i = 0; i < N; i++


{

for j = 0; j < M; j++


{
10

uimsbf

32

uimsbf

}
}
CRC_32
}

212

40UTCMJD16MJD244
BCD6GY/T 220.2-2006B

16

24GB/T 4880.2/T-20003
GB/T 15273.1-1994824
3zho0111 1010 0110 1000 0110 1111

80255

8
CRC_32
32 CRC_32GY/T 220.2-2006A
5.3

GY/T 220.2-2006200
9

11

CMMB
6
6 ESG

uimsbf

bslbf

bslbf

bslbf

uimsbf

uimsbf

16

uimsbf

uimsbf

32

uimsbf

for ( i = 0; i < N; i++ )


{

}
CRC_32
}

44

3ESG7
7
(b2b1b0)

000

001

GZIP

010111

GZIPGZIPIETF RFC 1952

80254

81255

16065535

ESGXMLXML

12


CRC_32
32 CRC_32GY/T 220.2-2006A
6

XML
XMLESGSchemaXML

6.1
XML Schema
<xs:schema targetNamespace="urn:cmmb:esg:2007" xmlns:xs:esg="urn:cmmb:esg:2007"
xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
attributeFormDefault="unqualified">
6.2

6.2.1
Schema10

10

13

CMMB
6.2.2

<element name="ESGDATA">
<complexType>
<sequence>
<element name="Service" type="esg:ServiceType" minOccurs="0" maxOccurs="unbounded"/>
<element name="ServiceAux" type="esg:ServiceAuxType" minOccurs="0"
maxOccurs="unbounded"/>
<element name="Schedule" type="esg:ScheduleType" minOccurs="0" maxOccurs="unbounded"/>
<element name="Content" type="esg:ContentType" minOccurs="0" maxOccurs="unbounded"/>
<element name="ServicePara" type="esg:ServiceParaType" minOccurs="0"
maxOccurs="unbounded"/>
<element name="PublicationTime" type="esg:UTCDateTimeType" minOccurs="0"/>
<element name="Publisher" type="string" minOccurs="0"/>
<element name="RightsOwner" type="string" minOccurs="0"/>
</sequence>
<attribute name="Ver" type="esg:VerType" use="optional" default="1.0"/>
</complexType>
</element>
<simpleType name="VerType">
<restriction base="decimal"/>
</simpleType>
6.2.3
8
8

ESGDATA

XMLESG

Service

ServiceType

6.3

ServiceAux

ServiceAuxType

6.4

Schedule

ScheduleType

6.5

Content

ContentType

6.6

ServicePara

ServiceParaType

6.7

Ver

VerType

Publisher

string

PublicationTime

14


8
UTCDateTimeType

6.8

RightsOwner

string

6.3

ServiceType
Schema
6.3.1
Schema11

11 Schema
6.3.2

<complexType name="ServiceType">
<sequence>
<element name="ServiceClass" type="unsignedByte"/>
<element name="ServiceGenre" type="unsignedByte"/>
<element name="ServiceParaID" type="unsignedShort"/>
<element name="ServiceName" maxOccurs="unbounded">
<complexType>
<sequence>
<element name="ServiceNameStr" type="string"/>
</sequence>
<attribute name="lang" type="string" default="zho"/>
</complexType>
15

CMMB
</element>
<element name="forFree" type="boolean"/>
<element name="CADescriptor" type="anyURI" minOccurs="0"/>
</sequence>
<attribute name="ServiceID" type="unsignedShort" use="required"/>
</complexType>
6.3.3
9
9

ServiceType

ServiceClass

8
0
1
2
3
4
5
6 ESG
7
8255

ServiceGenre

ServiceParaID

16
0

ServiceName

lang

ServiceNameStr

lang

GB/T 4880.2/T-20003
3zho

forFree

truefalse

CADescriptor

ServiceID

16
3

6.4

ServiceAuxTypeSchema

6.4.1
Schema12

16

12 Schema
6.4.2

<complexType name="ServiceAuxType">
<sequence>
<element name="ServiceAuxLanguageSpecial" minOccurs="0" maxOccurs="unbounded">
<complexType>
<sequence>
<element name="ServiceDescription" type="string"/>
<element name="ServiceProvider" type="string"/>
<element name="ServiceLanguage" type="string"/>
</sequence>
<attribute name="lang" type="string" default="zho"/>
</complexType>
</element>
<element name="Media" type="esg:MediaType" minOccurs="0" maxOccurs="unbounded"/>
<element name="ExtentInfo" type="anyURI" minOccurs="0"/>
</sequence>
<attribute name="ServiceID" type="unsignedShort" use="required"/>
</complexType>
6.4.3
10
10

ServiceAuxType

ServiceAuxLanguageSpecial

ServiceDescription

ServiceProvider

ServiceLanguage

,
//
17

CMMB
10
lang

ServiceAuxLanguageSpecial GB/T
4880.2/T-200033zho

Media

MediaType

6.9

ExtentInfo

ServiceID

16
3

6.5

ScheduleType
Schema
6.5.1
Schema13

13 Schema
6.5.2

<complexType name="ScheduleType">
<sequence>
<element name="ServiceID" type="unsignedShort"/>
18


<element name="ContentID" type="unsignedShort"/>
<element name="Title" maxOccurs="unbounded">
<complexType>
<sequence>
<element name="TitleStr" type="string"/>
</sequence>
<attribute name="lang" type="string" default="zho"/>
</complexType>
</element>
<element name="StartTime" type="esg:UTCDateTimeType"/>
<element name="forFree" type="boolean"/>
<element name="Live" type="boolean" minOccurs="0"/>
<element name="Repeat" type="boolean" minOccurs="0"/>
<element name="CADescriptor" type="anyURI" minOccurs="0"/>
</sequence>
<attribute name="ScheduleID" type="unsignedShort" use="required"/>
</complexType>
6.5.3
11
11

ScheduleType

Schedule

ServiceID

16
3

ContentID

16

Title

TitleStr

lang

TitleGB/T 4880.2/T-20003
3zho

StartTime

UTCDateTimeType

6.8

forFree

truefalse

Live

truefalse

Repeat

truefalse

CADescriptor

ScheduleID

16

6.6

ContentType
Schema
6.6.1
19

CMMB
Schema14

14 Schema
6.6.2

<complexType name="ContentType">
<sequence>
<element name="ContentClass" type="string"/>
<element name="ContentGenre" type="unsignedByte"/>
<element name="Duration" type="unsignedShort"/>
<element name="Media" type="esg:MediaType" minOccurs="0" maxOccurs="unbounded"/>
<element name="ContentLanguageSpecial" minOccurs="0" maxOccurs="unbounded">
<complexType>
<sequence>
<element name="Title" type="string" minOccurs="0" />
<element name="Keyword" type="string" minOccurs="0" />
<element name="DigestInfo" type="string" minOccurs="0" />
<element name="AudioLang" type="string" minOccurs="0" />
<element name="SubtitleLang" type="string" minOccurs="0" />
</sequence>
<attribute name="lang" type="string" default="zho"/>
</complexType>
</element>
20


<element name="ServiceParaID" type="unsignedShort" minOccurs="0"/>
<element name="ExtentInfo" type="anyURI" minOccurs="0"/>
</sequence>
<attribute name="ContentID" type="unsignedShort" use="required"/>
</complexType>
6.6.3
12
12

ContentType

ContentClass

IETF RFC 2046


textimageaudiovideoapplication
multipart

ContentGenre

8GY/Z 174-200126

Duration

16

Media

MediaType

6.9

ContentLanguageSpecial

Keyword

DigestInfo

Title

AudioLang

//

SubtitleLang

//

lang

ContentLanguageSpecialGB/T 4880.2/T-20003
3zho

ServiceParaID

16
0

ExtentInfo

URI

ContentID

6.7

16

ServiceParaType
Schema
6.7.1
Schema15

21

CMMB

15 Schema
6.7.2

<complexType name="ServiceParaType">
<sequence>
<element name="Para" type="anyType"/>
</sequence>
<attribute name="ServiceParaID" type="unsignedShort" use="required"/>
</complexType>
6.7.3
13
13

ServiceParaType

Para

ServiceParaID

16

6.8

ESGSchema
6.8.1
Schema16

16 Schema
6.8.2

22


<complexType name="UTCDateTimeType">
<sequence>
<element name="Date">
<simpleType>
<restriction base="string">
<length value="10"/>
<pattern value="([0-9]){4}-(([0][1-9])|([1][0-2]))-(([0][1-9])|([1-2][0-9])|([3][0-1]))"/>
</restriction>
</simpleType>
</element>
<element name="Time">
<simpleType>
<restriction base="string">
<length value="8"/>
<pattern value="(([0-1][0-9])|([2][0-3])):[0-5][0-9]:[0-5][0-9]"/>
</restriction>
</simpleType>
</element>
</sequence>
</complexType>
6.8.3
14
14

UTCDateTimeType

Date

xxxx-xx-xx--

Time

xx:xx:xx::

6.9

Schema
6.9.1
Schema17

17 Schema
23

CMMB
6.9.2

<complexType name="MediaType">
<sequence>
<element name="Usage" type="unsignedByte"/>
<element name="ContentClass" type="string"/>
<choice>
<element name="MediaData" type="base64Binary"/>
<element name="MediaURI" type="anyURI"/>
</choice>
</sequence>
</complexType>
6.9.3
15
15

MediaType

Media

Usage

8
0x00
0x01
0x02 ICON/LOGO
0x03
0x04
0x05
0x060xFF

ContentClass

IETF RFC 2046(MIME)

MediaData

base64Binary

MediaURI

URI

24

You might also like