CN113573133A - Method for storing EPG (electronic program guide) for digital television set top box - Google Patents

Method for storing EPG (electronic program guide) for digital television set top box Download PDF

Info

Publication number
CN113573133A
CN113573133A CN202110837091.4A CN202110837091A CN113573133A CN 113573133 A CN113573133 A CN 113573133A CN 202110837091 A CN202110837091 A CN 202110837091A CN 113573133 A CN113573133 A CN 113573133A
Authority
CN
China
Prior art keywords
event
epg
service
package
executing
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
CN202110837091.4A
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.)
Hangzhou Nationalchip Science & Technology Co ltd
Original Assignee
Hangzhou Nationalchip Science & 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 Hangzhou Nationalchip Science & Technology Co ltd filed Critical Hangzhou Nationalchip Science & Technology Co ltd
Priority to CN202110837091.4A priority Critical patent/CN113573133A/en
Publication of CN113573133A publication Critical patent/CN113573133A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream

Abstract

The invention discloses a method for storing EPG (electronic program guide) for a digital television set top box. The method comprises an EPG storage structure and an EPG access method. EPG memory structure: each service in the EPG comprises a service packet and a service header connected with the service packet, and all the service headers are connected in series; each service package includes a current, a subsequent, a parental lock. The parent-parent lock is formed by connecting parent-parent lock information of countries required by design; the Event table is formed by connecting Event packages of national languages required by design, each Event package comprises all events of all corresponding languages, and the events are sequentially connected according to the time sequence from morning to evening. The EPG access method comprises an Event adding method, an EPG acquiring method and an expired Event clearing method. The method of the invention does not need to introduce a complex database, solves the contradiction between the large data volume storage requirement of the EPG and the limitation of the set-top box storage resource, and stores more EPG information in the limited storage space.

Description

Method for storing EPG (electronic program guide) for digital television set top box
Technical Field
The invention belongs to the technical field of digital set-top boxes, and particularly relates to a method for storing an EPG (electronic program guide) for a digital television set-top box.
Background
The tv industry has generated many new service forms from analog tv to digital tv, wherein EPG (Electronic Program Guide) is an important new service. The user can select the favorite multicast channel, request favorite video programs, sing favorite songs on line, and search various information provided by IPTV, including life information, entertainment information, education information, sports information, etc. by using the menu provided by the EPG. The user may also view additional information about the program, such as a description of the program's content, descriptions of actors and directors, etc., using the EPG menu. Meanwhile, by means of the parental control function provided in the EPG menu, parents can limit certain programs and do not open all watching permissions for children.
The birth of the EPG greatly enriches digital television services and provides convenient and practical digital television applications for users. The EPG can be said to plug the functions of the traditional tv newspaper, tv magazine and the like into the small set-top box, and performs function expansion, and the functions of the EPG not only cover the range of the traditional newspaper magazine, but also derive a new business state that the traditional newspaper magazine cannot realize.
However, the powerful function of the EPG depends on massive data, and three foundations of receiving, analyzing and storing the EPG are needed to realize the function of the EPG. The storage is a difficult point, the EPG information amount is huge, frequent updating and searching are needed, and a set of good EPG storage system is a necessary basis for EPG service. In general, a database is used for storing, updating and querying mass data, but a set top box is an embedded small system, various resources are greatly limited, and the operation of the database needs many additional resources, such as additional operating memory and additional storage space. Therefore, the database is not suitable for storing the EPG in the set-top box, and a storage method which is suitable for the set-top box and meets the EPG storage requirement is urgently needed.
The data characteristics of the EPG itself are as follows:
1. the data storage is not randomly arranged but has obvious master-slave relation, and has strong classification and sorting characteristics.
Master-slave relationship: service is the master, Event is the slave; each Event has a Service to which the Event belongs;
and (4) classification: the fractional lock is classified according to countries; events are classified by language;
sorting: events are ordered by time from morning to evening.
2. Random access is not required, but rather there is an apparent access order, and updates also need to satisfy master-slave relationships, sorting and ordering.
The access sequence is as follows: each Service needs to be acquired in sequence, and an Event is acquired from morning to evening according to time;
updating requirement: event updating needs to find out the corresponding Service and the corresponding language, and updating is carried out according to the time sequence;
the private Lock update requires finding the corresponding Service.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provides a method for storing an EPG (electronic program guide) for a digital television set-top box.
The method comprises an EPG storage structure and an EPG access method.
The EPG storage structure specifically comprises:
each Service in the EPG comprises a Service Package and a Service Head connected with the Package, and all the Service heads are connected in series;
each Service Package comprises a Present, a Follow, a partial Rating and an Event List;
the partial Rating is formed by connecting partial Rating information of countries required by each design;
the Event List is formed by connecting Event packages of national languages required by design, each Event Package comprises all the events of all the corresponding languages, and the events are sequentially connected according to the time sequence from morning to evening.
The EPG access method comprises an Event adding method, an EPG acquiring method and an expired Event clearing method.
The Event adding method specifically comprises the following steps:
step (1), a user sends an Event adding instruction;
step (2) judging whether the Event belongs to an existing Service Package:
if the Event belongs to the Service Package, judging whether the Event is repeated with the Event already existing in the Service Package: if the Event is repeated, the adding Event instruction is not executed; if not, executing the step (3);
if not, a new Service Package is created, and the step (4) is executed;
step (3) finding the Event Package corresponding to the Event, and executing step (5);
step (4) creating a new Event Package, and executing step (5);
and (5) inserting the Event into the corresponding Event Package according to the time position, and conforming to the time sequence.
The method for acquiring the EPG specifically comprises the following steps:
step (1) a user sends an instruction for acquiring an EPG;
step (2) acquiring a corresponding Service Package according to ts id, Service id and origin id contained in Event required to be acquired by the EPG instruction;
step (3) judging whether all Service packages are acquired: if the acquisition is finished, the EPG acquisition is finished; otherwise, executing the step (4);
step (4) acquiring an Event Package under the Service Package acquired in step (2);
step (5) judging whether all Event packages under the Service Package acquired in the step (2) are acquired: if the acquisition is finished, executing the step (2); otherwise, executing the step (6);
step (6) acquiring one Event under the Event Package acquired in the step (4);
step (7) is to judge whether all the events in the Event Package acquired in the step (4) are acquired or not: if the acquisition is finished, returning to the step (4); otherwise, continuing to execute the step (6).
The method for clearing the expired Event specifically comprises the following steps:
step (1) a user sends an overdue Event clearing instruction;
step (2) searching a Service Package corresponding to the instruction;
step (3) judging whether all Service packages are searched completely: if the search is finished, clearing the overdue Event is finished; otherwise, executing the step (4);
step (4) searching an Event Package under the Service Package searched in the step (2);
step (5) judging whether all Event packages under the Service Package searched in the step (2) are searched completely: if the search is finished, executing the step (2); otherwise, executing the step (6);
step (6) one Event under the Event Package searched in the step (4) is searched;
and (7) judging whether the Event time searched in the step (6) is expired or not through the system time: if the Event is expired, executing the step (8) after deleting the Event; otherwise, directly executing the step (8);
step (8) judging whether all the events in the Event Package searched in the step (4) are searched completely: if the search is finished, returning to the step (4); otherwise, continuing to execute the step (6).
The method can realize the following two points:
1. large data volume EPG storage: a set of storage structures is designed according to the characteristics of EPG data without using a database, and a large amount of EPG information can be stored only by a small extra space.
2. Accessing EPG information: according to the EPG data use characteristics, an Event adding method and an EPG obtaining method are designed, so that a user can add events and obtain EPG information conveniently.
The method of the invention does not need to introduce a complex database, designs the EPG storage structure according to the EPG data characteristics, and realizes the updating, the acquisition and the clearing of the expired information of the EPG information according to the EPG access characteristics. The method of the invention fundamentally solves the contradiction between the large data volume storage requirement of the EPG and the limited storage resource of the set-top box, and puts down more EPG information in the limited storage space.
Drawings
FIG. 1 is a general schematic diagram of an EPG storage structure according to the present invention;
FIG. 2 is a diagram illustrating the structure of the Event List of FIG. 1;
FIG. 3 is a flow chart of a method for adding an Event according to the present invention;
FIG. 4 is a flow chart of a method for obtaining EPG data in accordance with the present invention;
FIG. 5 is a flowchart of a method for clearing expired events according to the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
A method for storing EPG for a digital television set-top box comprises an EPG storage structure and an EPG access method.
The EPG storage structure specifically comprises:
as shown in fig. 1, each Service in the EPG includes a Service Package and a Service Head connected to the Package, and all the Service heads are connected in series.
Each Service Package includes Present (current), Follow (Follow), partial Rating (parent lock), Event List. The partial Rating is formed by connecting partial Rating information of countries required by each design. As shown in the figure, the private Rating is composed of the private Rating information of the countries such as the china, the japan, and the korea.
The information carried by the Service Package further includes: ts id, service id, original id; three ids determine a Service Package.
As shown in fig. 2, the Event List is formed by connecting Event packages in the national languages required for the respective designs, each Event Package contains all the events in all the corresponding languages, and the events are sequentially connected in time order from morning to evening. As shown in the figure, the Event Package is composed of an Event Package such as chinese, japanese, korean, and the like.
The information carried by an Event also includes: event id, ts id, service id, original id, time identification, language identification, Event name and Event description; event id is the unique identifier of Event and is used for comparing whether the events are the same or not; the ts id, the Service id and the origin id determine a Service Package to which the Event belongs; the time identifier is used for time sequencing, clearing expired events and comparing with system time; events are classified according to carried language identification.
The EPG access method comprises an Event adding method, an EPG acquiring method and an expired Event clearing method.
As shown in FIG. 3, the Add Event method is as follows:
step (1), a user sends an Event adding instruction;
step (2) judging whether the Event belongs to an existing Service Package:
if the Event belongs to the Service Package, judging whether the Event is repeated with the Event already existing in the Service Package: if the Event is repeated, the adding Event instruction is not executed; if not, executing the step (3);
if not, a new Service Package is created, and the step (4) is executed;
step (3) finding the Event Package corresponding to the Event, and executing step (5);
step (4) creating a new Event Package, and executing step (5);
and (5) inserting the Event into the corresponding Event Package according to the time position, and conforming to the time sequence.
As shown in fig. 4, the EPG acquisition method is as follows:
step (1) a user sends an instruction for acquiring an EPG;
step (2) acquiring a corresponding Service Package according to ts id, Service id and origin id contained in Event required to be acquired by the EPG instruction;
step (3) judging whether all Service packages are acquired: if the acquisition is finished, the EPG acquisition is finished; otherwise, executing the step (4);
step (4) acquiring an Event Package under the Service Package acquired in step (2);
step (5) judging whether all Event packages under the Service Package acquired in the step (2) are acquired: if the acquisition is finished, executing the step (2); otherwise, executing the step (6);
step (6) acquiring one Event under the Event Package acquired in the step (4);
step (7) is to judge whether all the events in the Event Package acquired in the step (4) are acquired or not: if the acquisition is finished, returning to the step (4); otherwise, continuing to execute the step (6).
As shown in FIG. 5, the clear expired Event method is as follows:
step (1) a user sends an overdue Event clearing instruction;
step (2) searching a Service Package corresponding to the instruction;
step (3) judging whether all Service packages are searched completely: if the search is finished, clearing the overdue Event is finished; otherwise, executing the step (4);
step (4) searching an Event Package under the Service Package searched in the step (2);
step (5) judging whether all Event packages under the Service Package searched in the step (2) are searched completely: if the search is finished, executing the step (2); otherwise, executing the step (6);
step (6) one Event under the Event Package searched in the step (4) is searched;
and (7) judging whether the Event time searched in the step (6) is expired or not through the system time: if the Event is expired, executing the step (8) after deleting the Event; otherwise, directly executing the step (8);
step (8) judging whether all the events in the Event Package searched in the step (4) are searched completely: if the search is finished, returning to the step (4); otherwise, continuing to execute the step (6).
The technical key points of the method comprise:
1. the Event packages are used for storing Event information, each Event Package contains events in the same language, and the events in each Event Package are sequenced according to time;
2. the Service Package is used for storing Service information, creating the Service Package according to the characteristics of the Service information, and finally combining the Service Package with the Event Package to form a complete EPG (electronic program guide) storage structure;
3. in the EPG acquisition method, the storage structure of the EPG determines that all EPG information needs to be acquired from a Service Package first, then an Event Package under the Service Package is acquired, and finally an Event under the Event Package is acquired;
4. the method for conveniently acquiring the EPG, adding the Event and clearing the expired Event is provided, and the user can recover the storage space when necessary.
The implementation key points comprise:
1. user configuration needs to be provided, the maximum allowed memory amount is limited before the EPG module is initialized, and the phenomenon that a large amount of EPG data occupies the whole system memory is avoided;
2. when adding an Event, needing to find a Service Package corresponding to the Event, finding a corresponding Event Package through the Service Package, and finally, inserting the Event into the Event Package, wherein the Event Package needs to be sequenced from morning to evening according to time to find a proper insertion point;
3. recording the storage address information of the events, and enabling a user to quickly acquire each Event;
4. allowing the client to reclaim the storage space while clearing the expired Event.

Claims (6)

1. A method for storing EPG of digital television set-top box includes EPG storage structure and EPG access method; the method is characterized in that:
the EPG storage structure specifically comprises:
each Service in the EPG comprises a Service Package and a Service Head connected with the Package, and all the Service heads are connected in series;
each Service Package comprises a Present, a Follow, a partial Rating and an Event List;
the partial Rating is formed by connecting partial Rating information of countries required by each design;
the Event List is formed by connecting Event packages of national languages required by design, each Event Package comprises all the events of all the corresponding languages, and the events are sequentially connected according to the sequence of time from morning to evening;
the EPG access method comprises an Event adding method, an EPG acquiring method and an expired Event clearing method.
2. The method for a digital television set-top box to store an EPG, as claimed in claim 1, wherein: the information carried by the Service Package further includes: ts id, service id, original id; three ids determine a Service Package.
3. The method for a digital television set-top box to store an EPG, as claimed in claim 1, wherein: the information carried by the Event further comprises: event id, ts id, service id, original id, time identification, language identification, Event name and Event description; event id is the unique identifier of Event and is used for comparing whether the events are the same or not; the ts id, the Service id and the origin id determine a Service Package to which the Event belongs; the time identification is used for time sequencing and is compared with the system time; events are classified according to carried language identification.
4. The method for a digital television set-top box to store an EPG, as claimed in claim 1, wherein: the Event adding method specifically comprises the following steps:
step (1), a user sends an Event adding instruction;
step (2) judging whether the Event belongs to an existing Service Package:
if the Event belongs to the Service Package, judging whether the Event is repeated with the Event already existing in the Service Package: if the Event is repeated, the adding Event instruction is not executed; if not, executing the step (3);
if not, a new Service Package is created, and the step (4) is executed;
step (3) finding the Event Package corresponding to the Event, and executing step (5);
step (4) creating a new Event Package, and executing step (5);
and (5) inserting the Event into the corresponding Event Package according to the time position, and conforming to the time sequence.
5. The method for a digital television set-top box to store an EPG, as claimed in claim 1, wherein: the method for acquiring the EPG specifically comprises the following steps:
step (1) a user sends an instruction for acquiring an EPG;
step (2) acquiring a corresponding Service Package according to ts id, Service id and origin id contained in Event required to be acquired by the EPG instruction;
step (3) judging whether all Service packages are acquired: if the acquisition is finished, the EPG acquisition is finished; otherwise, executing the step (4);
step (4) acquiring an Event Package under the Service Package acquired in step (2);
step (5) judging whether all Event packages under the Service Package acquired in the step (2) are acquired:
if the acquisition is finished, executing the step (2); otherwise, executing the step (6);
step (6) acquiring one Event under the Event Package acquired in the step (4);
step (7) is to judge whether all the events in the Event Package acquired in the step (4) are acquired or not: if the acquisition is finished, returning to the step (4); otherwise, continuing to execute the step (6).
6. The method for a digital television set-top box to store an EPG, as claimed in claim 1, wherein: the method for clearing the expired Event specifically comprises the following steps:
step (1) a user sends an overdue Event clearing instruction;
step (2) searching a Service Package corresponding to the instruction;
step (3) judging whether all Service packages are searched completely: if the search is finished, clearing the overdue Event is finished; otherwise, executing the step (4);
step (4) searching an Event Package under the Service Package searched in the step (2);
step (5) judging whether all Event packages under the Service Package searched in the step (2) are searched completely: if the search is finished, executing the step (2); otherwise, executing the step (6);
step (6) one Event under the Event Package searched in the step (4) is searched;
and (7) judging whether the Event time searched in the step (6) is expired or not through the system time: if the Event is expired, executing the step (8) after deleting the Event; otherwise, directly executing the step (8);
step (8) judging whether all the events in the Event Package searched in the step (4) are searched completely: if the search is finished, returning to the step (4); otherwise, continuing to execute the step (6).
CN202110837091.4A 2021-07-23 2021-07-23 Method for storing EPG (electronic program guide) for digital television set top box Pending CN113573133A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110837091.4A CN113573133A (en) 2021-07-23 2021-07-23 Method for storing EPG (electronic program guide) for digital television set top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110837091.4A CN113573133A (en) 2021-07-23 2021-07-23 Method for storing EPG (electronic program guide) for digital television set top box

Publications (1)

Publication Number Publication Date
CN113573133A true CN113573133A (en) 2021-10-29

Family

ID=78166858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110837091.4A Pending CN113573133A (en) 2021-07-23 2021-07-23 Method for storing EPG (electronic program guide) for digital television set top box

Country Status (1)

Country Link
CN (1) CN113573133A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115278372A (en) * 2022-07-28 2022-11-01 杭州国芯科技股份有限公司 Method for set top box to quickly acquire EPG data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1437406A (en) * 2002-01-07 2003-08-20 Lg电子株式会社 Apparatus and method for controlling electronic program guide (EPG)
CN101923519A (en) * 2010-08-06 2010-12-22 福建新大陆通信科技股份有限公司 Method for quickly storing and reading EPG (Electronic Program Guide) data of set top box
CN106060598A (en) * 2016-07-18 2016-10-26 青岛海信传媒网络技术有限公司 Electronic program guide (EPG) information generating method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1437406A (en) * 2002-01-07 2003-08-20 Lg电子株式会社 Apparatus and method for controlling electronic program guide (EPG)
CN101923519A (en) * 2010-08-06 2010-12-22 福建新大陆通信科技股份有限公司 Method for quickly storing and reading EPG (Electronic Program Guide) data of set top box
CN106060598A (en) * 2016-07-18 2016-10-26 青岛海信传媒网络技术有限公司 Electronic program guide (EPG) information generating method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
轻骑: "DVB业务信息综述" *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115278372A (en) * 2022-07-28 2022-11-01 杭州国芯科技股份有限公司 Method for set top box to quickly acquire EPG data
CN115278372B (en) * 2022-07-28 2024-03-22 杭州国芯科技股份有限公司 Method for quickly acquiring EPG data by set top box

Similar Documents

Publication Publication Date Title
CN109213844B (en) Text processing method and device and related equipment
CN105956149B (en) method and device for recommending default search terms
KR101270357B1 (en) Aligning video data to create a comprehensive program guide
US20040139091A1 (en) Index structure of metadata, method for providing indices of metadata, and metadata searching method and apparatus using the indices of metadata
US20110289073A1 (en) Generating browsing hierarchies
CN102326178A (en) Method and apparatus for reproducing content through integrated channel management
CN106484774B (en) Correlation method and system for multi-source video metadata
WO2006003766A1 (en) Program search device
CN105721944A (en) News information recommendation method for smart television
US20080154958A1 (en) Expanding media content item information
CN102253994A (en) Automatic searching device and method
CN105631044A (en) Convergence method of network video resources
KR20130123750A (en) System and method for providing video service based on image data
CN101304503A (en) Method for researching digital television program
WO2014054025A1 (en) Method and system for recommending multimedia contents through a multimedia platform
CN101860701A (en) Method for finding required programs by utilizing set-top box
CN113573133A (en) Method for storing EPG (electronic program guide) for digital television set top box
JP2005064561A (en) Video reproducing method and system
CN105122829B (en) The pertinent program information for being used for broadcast media content and streaming medium content is provided
US20130179425A1 (en) Apparatus and method for searching for program using related keyword
KR100894607B1 (en) System of Constructing Metadata Corresponding to Media Contents
JP2008516505A (en) Recommended method and apparatus for digital program
CN102378051A (en) Method for acquiring analog TV channel EPG (Electronic Programme Guide) from web TV
CN100493161C (en) Intelligent channel scanning method
KR100694423B1 (en) Method and apparatus for searching EPG information using a keyword index in a digital broadcasting receiver

Legal Events

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

Application publication date: 20211029

RJ01 Rejection of invention patent application after publication