CN101771803A - Method for receiving electronic program guide data - Google Patents

Method for receiving electronic program guide data Download PDF

Info

Publication number
CN101771803A
CN101771803A CN200810241678A CN200810241678A CN101771803A CN 101771803 A CN101771803 A CN 101771803A CN 200810241678 A CN200810241678 A CN 200810241678A CN 200810241678 A CN200810241678 A CN 200810241678A CN 101771803 A CN101771803 A CN 101771803A
Authority
CN
China
Prior art keywords
section
epg
information table
data
receives
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.)
Pending
Application number
CN200810241678A
Other languages
Chinese (zh)
Inventor
陈志�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN200810241678A priority Critical patent/CN101771803A/en
Publication of CN101771803A publication Critical patent/CN101771803A/en
Pending legal-status Critical Current

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a method for receiving electronic program guide (EPG) data, which is applied to the technical field of digital television. The method comprises the following steps: a. receiving section of an EPG information sheet and storing the received section in a memory; and b. analyzing the received EPG when sections of all EPG information sheets are received. In the technical scheme of the invention, frequent wait of unreceived sections can be avoided in the process of receiving EPG data, and analysis time of all section data is shortened due to batch analysis of sections, thereby speeding up EPG data processing.

Description

A kind of method that receives electronic program guide data
Technical field
The invention belongs to the digital television techniques field, relate in particular to a kind of method that receives electronic program guide data.
Background technology
Existing digital television system front end has adopted multiplex technique, video, audio frequency and other data that are about to the program code multiplexing of packing respectively forms a single service transport stream, then with other single program stream secondary multiplexings of same channel (Channel), add miscellaneous service information, form the transport stream of a Polymera, through ovennodulation, arrive digital TV terminal then by cable, terrestrial transmission or satellite transmits.Digital TV terminal passes through tuning unit demodulates, ciphered program also need pass through descrambler descrambles, filters out through the audio/video flow of demodulation multiplexer with different programs then, delivers to the audio/video decoder decoding, pass through D/A (D/A) conversion at last, the TV programme that the user is selected plays back.
Comprise the network information, information on services, bouquet information, programme information and temporal information etc. in existing electronic program guides (EPG) data.The appearance of electronic program guides becomes a kind of characteristic of digital television transfer, and provide the information and the audio-video signal of electronic program guides of program navigating function multiplexing together in transport stream for the user, so digital TV terminal need extract program navigating information in transport stream, form the data structure that can supply the user to browse and inquire about.
Electronic program guide data comprises network information table (NIT), service describing table (SDT), bouquet related information table (BAT), program information table (EIT), Time of Day table (TDT/TOT) etc.NIT, SDT, BAT, EIT can be divided into a plurality of sublists, each sublist is divided into maximum 256 sections (section) again, digital TV terminal has an anabolic process to the section data, the section data that will belong to same sublist are lumped together, and then, insert corresponding section data in the data structure of sublist according to the data structure of sublist.The combination of Section is normally finished by the hardware filter of digital TV terminal, at first set the PID (packet identifier) of passage during combination, and in filter is provided with required table_id (table identifier), transport_stream_id (transport stream identification), section_number information such as (present segment numbers), open filter and passage then, can distinguish by table identifier between the different tables, different Section data can be distinguished by PID, from transport stream packets, filter out the section data that belong to same PID, the Section data filter that so just will belong to a PID together, belong to another PID be the section data filter together, hardware chip is finished the filtration from the transport stream packets to section.After digital TV terminal received section, hardware produced and interrupts, and this interrupt service routine is also referred to as callback procedure in program.This callback procedure obtains the initial address and the length of a buffering area (buffer), by software this buffer is carried out parsing to information table, parsing is obtained information be filled in the fixing data structure, offers EPG and uses.
As mentioned above, in the prior art parsing of data among the section is finished in callback procedure.Owing to the time interval between two section can not be less than 25ms (seeing the 5.1.4 of the en300468 of SI standard), prior art is to resolve while receiving to the processing procedure of section data, and the time between two section can not be less than 25ms, so set-top box needs the time of 25ms to handle a section at least, through receiving second section again after the 25ms at least and it being handled, but the transmission data volume of SI information is bigger, general transmission speed is very fast, send section data as every 10ms, handle with above method and may in processing procedure, miss a lot of section, thereby need the frequent next round data of waiting for, cause the inefficiency that receives, time of reception is multiplied.
Summary of the invention
The object of the present invention is to provide a kind of method that receives electronic program guide data, be intended to solve the long problem of electronic program guide data time of reception that exists in the prior art.
The present invention is achieved in that a kind of method that receives electronic program guide data, and described method comprises:
The section of a, reception EPG information table stores the section that is received in the memory into;
B, after the section of described all information tables of EPG all receives, the EPG that is received is resolved.
Wherein also comprise before the step a:
A0, for receiving the section distributing system resource of described EPG information table;
Wherein step a specifically comprises:
A1, call the Section callback procedure, receive the Section of each sublist in a certain EPG information table one by one, the section that is received is stored in the described memory;
A2, after the section of this each sublist of information table all receives, receive the section of other each sublists of information table of described EPG one by one, the section that receives is stored in the described memory, receive until all section of described EPG full detail table.
Wherein step b also comprises:
After the section of described all information tables of EPG all receives, free system resources.
Described system resource comprises passage and filter.
Described information table is in following one or multinomial: network information table, service describing table, bouquet related information table, program information table, Time of Day table.
Described memory is a Buffer Pool.
Also comprise after the step b:
C, the data that parsing is obtained are filled in the fixing data structure, offer EPG and use.
The present invention overcomes the deficiencies in the prior art, will be divided into reception data and two steps of resolution data to the acquisition process of electronic program guide data and finish, and at first receives only the section of each information table, stores the section that receives into memory space; After all section of full detail table receive, free system resources; And then carry out resolving, thereby obtain required EPG data to information table.Technical scheme provided by the invention is in the process that receives the EPG data, avoided the situation of the section that frequent wait do not receive, simultaneously because section is carried out the batch parsing, also shortened the parsing time, accelerated the process of whole processing EPG electronic program guide information all section data.
Description of drawings
Fig. 1 is an embodiment of the invention flow chart.
Embodiment
Technical scheme provided by the invention is: will be divided into reception data and two steps of resolution data to the acquisition process of electronic program guide data and finish, and at first receive only the section of each information table, the section that receives is stored in the memory; After all section of full detail table receive, free system resources; And then carry out resolving, thereby obtain required EPG data to information table.
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The method idiographic flow of the reception EPG that the embodiment of the invention provides comprises following step as shown in Figure 1:
1, for receiving EPG data distribution system resource;
2, detect data and arrive, call the Section callback procedure, the Section of receiving filtration device transmission, the data of a Section are received fully, and callback procedure is stored in the buffer memory;
3, call the Section callback procedure again, receive the data of next Section, the data of a Section are received fully, and callback procedure is stored in the buffer memory;
Do 4, whole section of current information table receive? if change step 5, otherwise change step 3;
5, receive the section of other information tables, call the Section callback procedure, the Section of receiving filtration device transmission, the data of a Section are received fully, and callback procedure is stored in the buffer memory;
6, call the Section callback procedure again, receive the data of next Section, the data of a Section are received fully, and callback procedure is stored in the buffer memory;
Do 7, whole section of all information tables receive? if change step 8, otherwise change step 5;
8, free system resources;
9, the section that receives is resolved, the data that parsing is obtained offer the EPG application according to fixing data structure.
Wherein step 1 specifically comprises:
101, in demodulation multiplexer, distribute untapped passage;
102, the corresponding callback procedure of channel registration that distributes for step 101 (this program is called when monitoring data arrival)
103, the channel allocation cache resources that distributes for step 101;
104, the passage that distributes for step 101 is provided with pid value, and this pid value is the pid value that filter receives transport stream;
105, the channel allocation filter that distributes for step 101.
Concrete when using technical scheme provided by the invention, in the process that receives the EPG data, may occur because network state is bad, the situation of the overlong time that receives, in order to save system resource, can be set the regular hour to the section of above-mentioned all information tables of reception EPG, when time of reception surpasses predefined time, pressure stops receiving course, and the resource of release busy.
In the technical scheme provided by the invention, section of the every reception of digital TV terminal just is stored in the buffer memory, treat that all section of EPG all receive after, again section is resolved.For the more efficient use internal memory, adopted the mode of Buffer Pool to come more reasonable use internal memory in the embodiment of the invention, prevent to carry out Memory Allocation at random and a large amount of unserviceable situation of fritter internal memory of occurring, improve the utilization ratio of internal memory.
All different information tables are adopted consistent data structure (being memory pool), comprise initial address, length, end address, total contents such as Section number.Each memory pool is deposited 256 Section at most, and under the situation of many sublists, a complete information table comprises a plurality of memory pools, and each memory pool is deposited a sublist.The initial size of memory pool has nothing in common with each other according to the kind of information table, can be 20KB as NIT table, BAT table, SDT table; The OSDT table can be 40KB.
In the embodiment of the invention, adopt following method to judge whether all section of a certain sublist of information table arrive: when the total number of the Section in the Buffer Pool equals the last segment number (lastSectionNumber) of corresponding sublist, to represent that this sublist is received fully.
After all section of EPG all receive, carry out the parsing of data, concrete resolving is same as the prior art, and this does not give unnecessary details.Be filled in the fixing data structure through resolving the data that obtain afterwards, offer EPG and use, be about to the variable that the data assignment is given the correspondence in the data structure, be convenient to EPG and use these variablees of use, finish function corresponding.Information table (comprising network information table NIT, service describing table SDT, bouquet related information table BAT, program information table EIT etc.) for many section, resolve the back canned data and can adopt consistent single linked list storage organization, adopt the consistent single linked list storage organization can well conserve storage, and it be also very convenient to upgrade EPG.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. method that receives electronic program guide data, described method comprises:
The section of a, reception EPG information table stores the section that is received in the memory into;
B, after the section of described all information tables of EPG all receives, the EPG that is received is resolved.
2. method according to claim 1 is characterized in that, wherein also comprises before the step a:
A0, for receiving the section distributing system resource of described EPG information table;
3. method according to claim 1 is characterized in that, wherein step a specifically comprises:
A1, call the Section callback procedure, receive the Section of each sublist in a certain EPG information table one by one, the section that is received is stored in the described memory;
A2, after the section of this each sublist of information table all receives, receive the section of other each sublists of information table of described EPG one by one, the section that receives is stored in the described memory, receive until all section of described EPG full detail table.
4. method according to claim 1 is characterized in that, wherein step b also comprises:
After the section of described all information tables of EPG all receives, free system resources.
5. method according to claim 4 is characterized in that described system resource comprises passage and filter.
6. method according to claim 1 is characterized in that, described information table is in following one or multinomial: network information table, service describing table, bouquet related information table, program information table, Time of Day table.
7. method according to claim 1 is characterized in that, described memory is a Buffer Pool.
8. method according to claim 1 is characterized in that, also comprises after the step b:
C, the data that parsing is obtained are filled in the fixing data structure, offer EPG and use.
CN200810241678A 2008-12-26 2008-12-26 Method for receiving electronic program guide data Pending CN101771803A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810241678A CN101771803A (en) 2008-12-26 2008-12-26 Method for receiving electronic program guide data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810241678A CN101771803A (en) 2008-12-26 2008-12-26 Method for receiving electronic program guide data

Publications (1)

Publication Number Publication Date
CN101771803A true CN101771803A (en) 2010-07-07

Family

ID=42504366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810241678A Pending CN101771803A (en) 2008-12-26 2008-12-26 Method for receiving electronic program guide data

Country Status (1)

Country Link
CN (1) CN101771803A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102131116A (en) * 2011-01-25 2011-07-20 四川长虹电器股份有限公司 Digital television electronic program guide (EPG) data receiving and resolution method
CN102215430A (en) * 2011-06-02 2011-10-12 福建新大陆通信科技股份有限公司 Method for avoiding data overflow by filtering EPG (electronic program guide) through STB (set top box)
CN102244815A (en) * 2011-06-30 2011-11-16 南京熊猫信息产业有限公司 Method for accelerating data reception of low-end digital set-top box chip by adopting parity channel filter
CN104639971A (en) * 2015-03-09 2015-05-20 深圳市茁壮网络股份有限公司 Method and device for injecting digital television service information
CN113613078A (en) * 2021-08-02 2021-11-05 四川长虹网络科技有限责任公司 Method for receiving digital television section data

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102131116A (en) * 2011-01-25 2011-07-20 四川长虹电器股份有限公司 Digital television electronic program guide (EPG) data receiving and resolution method
CN102131116B (en) * 2011-01-25 2013-04-03 四川长虹电器股份有限公司 Digital television electronic program guide (EPG) data receiving and resolution method
CN102215430A (en) * 2011-06-02 2011-10-12 福建新大陆通信科技股份有限公司 Method for avoiding data overflow by filtering EPG (electronic program guide) through STB (set top box)
CN102244815A (en) * 2011-06-30 2011-11-16 南京熊猫信息产业有限公司 Method for accelerating data reception of low-end digital set-top box chip by adopting parity channel filter
CN104639971A (en) * 2015-03-09 2015-05-20 深圳市茁壮网络股份有限公司 Method and device for injecting digital television service information
CN113613078A (en) * 2021-08-02 2021-11-05 四川长虹网络科技有限责任公司 Method for receiving digital television section data
CN113613078B (en) * 2021-08-02 2023-06-23 四川长虹网络科技有限责任公司 Digital television section data receiving method

Similar Documents

Publication Publication Date Title
US7463586B2 (en) Data transfer device to transfer repeat data from an upper station to a lower station
CN100521750C (en) Digital TV and channel setting method
CN101978691A (en) System, method and apparatus for pausing multi-channel broadcasts
CN101002412A (en) Data delivery over a cellular radio network
CN101771803A (en) Method for receiving electronic program guide data
KR20090112684A (en) Method and apparatus for transmitting broadcast, method and apparatus for receiving broadcast
CN1223032A (en) Program selection system for digital TV receiver
CN101341697B (en) Device with MPE-FEC frame memory
CN101202877B (en) Set-top box and method and apparatus for program switch
CN102098569B (en) Segment data distributing system of PSI/SI (program specific information/service information) table of digital television set top box and method thereof
CN102263647A (en) Data filtering apparatus and data filtering method
CN101151902A (en) Device and method for initializing decoder in digital broadcasting receiver
CN103002339B (en) Obtain the method and apparatus of demultiplexed data
CN101277440A (en) Method and system for automatically real time switching case
KR100896726B1 (en) Method for Near Video-on-Demand using partial staircase patching
JP2004260758A (en) Digital broadcast transmission/reception system
CN1593060A (en) Method of selecting a teletext page, teletex receiver and television set
KR100897835B1 (en) Method for Near Video-on-Demand using partial divide patching
US20050286861A1 (en) Method of managing auxiliary programs and a corresponding receiver and system
CN101370121A (en) IBTV matrix circular current digital television and data broadcasting unidirectional demanding system
WO2011076128A1 (en) Method, code stream equipment, multiplexer and system for broadcasting program specific information/service information (psi/si)
WO2007060577A1 (en) Method and apparatus for download in digital broadcasting system
CN115379255B (en) Hierarchical storage method based on data broadcast data organization
CN103327399A (en) Method for revealing EPG data rapidly
JP6441401B2 (en) Program reproduction control method and digital television apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100707