CN101834978A - Method for optimizing digital set-top box EPG system - Google Patents

Method for optimizing digital set-top box EPG system Download PDF

Info

Publication number
CN101834978A
CN101834978A CN200910113022A CN200910113022A CN101834978A CN 101834978 A CN101834978 A CN 101834978A CN 200910113022 A CN200910113022 A CN 200910113022A CN 200910113022 A CN200910113022 A CN 200910113022A CN 101834978 A CN101834978 A CN 101834978A
Authority
CN
China
Prior art keywords
data
annular
buffer zone
data buffer
pointer
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.)
Granted
Application number
CN200910113022A
Other languages
Chinese (zh)
Other versions
CN101834978B (en
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.)
Fujian Newland Communication Science Technology Co Ltd
Original Assignee
Fujian Newland Communication 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 Fujian Newland Communication Science Technology Co Ltd filed Critical Fujian Newland Communication Science Technology Co Ltd
Priority to CN2009101130228A priority Critical patent/CN101834978B/en
Publication of CN101834978A publication Critical patent/CN101834978A/en
Application granted granted Critical
Publication of CN101834978B publication Critical patent/CN101834978B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The invention discloses a method for optimizing a digital set-top box EPG system, which comprises the following steps of: filtering EPG system data information from DVB standard service information code stream in the filtering process; transferring the data into an optimized annular data buffer area the first time; and acquiring the data from the optimized annular data buffer area at any time for analysis in the data analysis process. Two pointers in the annular data buffer area mutual contain and annularly move and the optimized annular data buffer area can effectively perform cache on the data. Therefore, the inconsistency of two processes on the motion speed is coordinated, the data processing speed is improved, the speed of capturing and analyzing the EPG system data is greatly improved, and the asynchronous data processing and buffering can be performed between the two processes based on the annular data buffer area. Meanwhile, a group number structure with the fixed length in the prior art is changed into the annular data buffer area for buffering data; the waste of internal memory is effectively reduced, and the precious internal memory resources of an embedded system are saved.

Description

A kind of optimization method of digital set-top box EPG system
Technical field
The present invention relates to the top box of digital machine field, relate in particular to a kind of optimization method of digital set-top box EPG system.
Background technology
Along with Digital Television, development of internet technology, anolog TV signals are progressively closed, and digital television signal is progressively popularized.People day by day strengthen the needs of Digital Television and value added service of digital television.Along with the continuous increase of digital television program quantity, people press for a kind of method that can browse TV guide easily and fast when using set-top box to watch Digital Television.Under this background, produced EPG (electronic program guides) system.Existing EPG system adopts the mechanism of one process work, and promptly CPU (central processing unit) handles respectively from DVB benchmark service information code current and collects raw data packets in the interlude section, i.e. the process of catching of electronic program guide data; Perhaps carry out the fractionation and the parsing of raw data packets, i.e. the analysis process of electronic program guide data; Must cause the reception of electronic program guide data like this and analyze the back speed of displaying slack-off.
Simultaneously, existing EPG system adopts the array of regular length that data are carried out buffer memory, because the different programs of EPG, different data volumes constantly are inconsistent, can cause the waste of memory headroom like this, as shown in Figure 1, the length of Section is fixed as 4096 bytes in the drawings, and epg database is an indefinite length, and therefore length can cause the internal memory waste often less than 4096 bytes.
Summary of the invention
In order to address the above problem, the invention provides a kind of extracting and the analysis that can accelerate the EPG data, reduce the optimization method of the digital set-top box EPG system of memory headroom waste, the data that set-top box is received are converted into electronic program list with the fastest speed, are presented on the video screen to consult for digital cable customers.
The optimization method of a kind of digital set-top box EPG system of the present invention specifically may further comprise the steps:
Step 1, by one section continuous space of internal memory application as the data buffer zone, apply for that simultaneously three variablees are used to represent the state of present data buffer zone, wherein, read pointer is used to the position of representing that present data are read, write pointer is used to the position of representing that present data are write, and bW_after_R is used to indicate the precedence relationship of read-write pointer, and two pointers check and balance, annular movement forms an annular data buffer zone; Make that by control reading and writing pointer the data in the annular data buffer zone must first write data, just can read then, and when data did not run through, write pointer can not allow new data cover the data of not reading away;
Step 2, employing two process carry out data processing, and a process is carried out data capture specially, and a process is carried out data analysis specially, carries out data buffering by the annular data buffer zone in the step 1 between two processes, carries out asynchronous process simultaneously;
After leaching goes out EPG system data information from DVB benchmark service information code current, the very first time is transferred to these data in the annular data buffer zone after the optimization, and the data analysis process can obtain data analysis the annular data buffer zone after optimizing at any time.
Described data capture process refers to, when capturing a data segment, judge the relation of write pointer and read pointer earlier, if write pointer is not also caught up with read pointer, just the length of this data segment is write the write pointer position of this annular data buffer zone, and then the data with this data segment are written in this annular data buffer zone, and write pointer are moved to the ending of data.
Described data analysis process refers to, at set intervals write pointer in the annular data buffer zone and read pointer are analyzed, if read pointer is not also caught up with write pointer, then from the length of the read pointer position reading of data section of annular data buffer zone, and then the reading of data section is called analytic function then data segment is resolved.
The present invention is by the improvement to data structure and algorithm, change existing one process working mechanism, adopt two process to assist the technology of asynchronous process, the buffer memory and the analysis speed of data have been improved greatly, the electronic program guide information that can show this program in the very first time of cutting platform is for user's digital television receiving brings brand-new good experience.This invention has improved the storage organization of data simultaneously, adopts loop buffer, and the expense of having saved the EPG metadata cache greatly is for valuable memory source has been saved in other application of embedded system.
Description of drawings
Fig. 1 is the structure of arrays schematic diagram of existing EPG system data buffer;
Fig. 2 is the workflow diagram of data capture of the present invention and analysis process;
Fig. 3 is the schematic diagram of the data buffer zone of write pointer of the present invention during faster than read pointer;
Fig. 4 is the schematic diagram of the data buffer zone of read pointer of the present invention during faster than write pointer.
The present invention is described in further detail below in conjunction with the drawings and specific embodiments.
Embodiment
The optimization method of a kind of digital set-top box EPG system disclosed by the invention specifically may further comprise the steps
Step 1, the data buffer zone is set
By one section continuous space of internal memory application as the data buffer zone, apply for that simultaneously three variablees are used to represent the state of present data buffer zone, wherein, read pointer (ReadPointer) is used to the position of representing that present data are read, write pointer (WritePointer) is used to the position of representing that present data are write, and control variables (bW_after_R) is used to indicate the precedence relationship of read-write pointer, and two pointers check and balance, annular movement forms an annular data buffer zone; Make that by control reading and writing pointer the data in the annular data buffer zone must first write data, just can read then, and when data did not run through, write pointer can not allow new data cover the data of not reading away.
As shown in Figure 4, when the value of bW_after_R is TRUE, illustrate that write pointer is after read pointer, when write pointer runs into read pointer, can not carry out write operation, must wait read pointer to go ahead, after data are read away, just can write data, not so can override the data of not reading away, cause loss of data.When read pointer arrives the buffering area end, when running through all data, will read to refer to move to the buffering area stem, and the value of bW_after_R will be changed to FALSE.
As shown in Figure 3, when the value of bW_after_R is False, illustrate that write pointer is before read pointer.When read pointer runs into write pointer, can not carry out read operation, must wait write pointer to go ahead, write after the new data, could sense data.When write pointer arrives the buffering area end, there is not internal memory can write data the time, will write and refer to move to the buffering area stem, and the value of bW_after_R will be changed to TRUE.
Asynchronous fifo structure is adopted in data buffer zone of the present invention, and one section continuous space of first to file is used for data segment (Section) and shares use.Shown in Fig. 3,4, wherein LenN is used to represent the physical length size of N segment data section, and Section N represents the concrete memory space of N segment data section.Each data segment only can take big or small space itself.
Step 2, employing two process carry out data processing, and a process is carried out data capture specially, and a process is carried out data analysis specially, carries out data buffering by an annular data buffer zone between two processes, carries out asynchronous process simultaneously; After leaching goes out EPG system data information from DVB benchmark service information code current, the very first time is transferred to these data in the annular data buffer zone after the optimization, and the data analysis process can obtain data analysis the annular data buffer zone after optimizing at any time.
Described data capture process refers to: when capturing a data segment (section), judge the relation of write pointer and read pointer earlier, if write pointer is not also caught up with read pointer, illustrate and also have idle space can store data, just the length of this data segment (section) is write the write pointer position of buffering area, and then the data with this data segment (section) are written to buffering area, and write pointer are moved to the ending of data;
Described data analysis process refers to: at set intervals write pointer in the buffering area and read pointer are analyzed, if read pointer is not also caught up with write pointer, the data that do not read in addition are described, then from the length (len) of the read pointer position reading of data section (section) of data buffer zone, and then read the so long data of len then, be data segment (section), call analytic function then data segment (section) is resolved.
As shown in Figure 2, the present invention in filter process from DVB benchmark service information code current leaching EPG system data information, the very first time is transferred to data in the annular data buffer zone after the optimization, and the data analysis process can obtain data analysis the annular data buffer zone after optimizing at any time.Though the processing speed between two processes may be inconsistent, but two pointers by annular data buffer zone check and balance, annular movement, and buffer memory can effectively be carried out to data in the annular data buffer zone after optimizing, this has just coordinated two processes inconsistent on the speed of service, accelerate the speed of data processing, accelerated the speed of catching and analyzing of EPG system data greatly.
After adopting technical scheme of the present invention, become the two process cooperation mode from the one process working mechanism of prior art, adopted annular data buffer area to carry out data communication between two process,, can carry out asynchronous data processing and buffering between two processes based on annular data buffer area.Simultaneously, data buffering becomes annular buffer area from the group table structure of the regular length of prior art, has effectively reduced the waste of internal memory, saves embedded system and protects expensive memory source.

Claims (3)

1. the optimization method of a digital set-top box EPG system is characterized in that specifically may further comprise the steps:
Step 1, by one section continuous space of internal memory application as the data buffer zone, apply for that simultaneously three variablees are used to represent the state of present data buffer zone, wherein, read pointer is used to the position of representing that present data are read, write pointer is used to the position of representing that present data are write, and bW_after_R is used to indicate the precedence relationship of read-write pointer, and two pointers check and balance, annular movement forms an annular data buffer zone; Make that by control reading and writing pointer the data in the annular data buffer zone must first write data, just can read then, and when data did not run through, write pointer can not allow new data cover the data of not reading away;
Step 2, employing two process carry out data processing, and a process is carried out data capture specially, and a process is carried out data analysis specially, carries out data buffering by the annular data buffer zone in the step 1 between two processes, carries out asynchronous process simultaneously;
After leaching goes out EPG system data information from DVB benchmark service information code current, the very first time is transferred to these data in the annular data buffer zone after the optimization, and the data analysis process can obtain data analysis the annular data buffer zone after optimizing at any time.
2. the optimization method of a kind of digital set-top box EPG system according to claim 1, it is characterized in that: described data capture process refers to, when capturing a data segment, judge the relation of write pointer and read pointer earlier, if write pointer is not also caught up with read pointer, just the length of this data segment is write the data that the write pointer located just of this annular data buffer zone this data segment and be written in this annular data buffer zone, and write pointer is moved to the ending of data.
3. the optimization method of a kind of digital set-top box EPG system according to claim 1, it is characterized in that: described data analysis process refers to, at set intervals write pointer in the annular data buffer zone and read pointer are analyzed, if read pointer is not also caught up with write pointer, then from the length of the read pointer position reading of data section of annular data buffer zone, and then the reading of data section is called analytic function then data segment is resolved.
CN2009101130228A 2009-12-23 2009-12-23 Method for optimizing digital set-top box EPG system Expired - Fee Related CN101834978B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101130228A CN101834978B (en) 2009-12-23 2009-12-23 Method for optimizing digital set-top box EPG system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101130228A CN101834978B (en) 2009-12-23 2009-12-23 Method for optimizing digital set-top box EPG system

Publications (2)

Publication Number Publication Date
CN101834978A true CN101834978A (en) 2010-09-15
CN101834978B CN101834978B (en) 2011-09-28

Family

ID=42718898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101130228A Expired - Fee Related CN101834978B (en) 2009-12-23 2009-12-23 Method for optimizing digital set-top box EPG system

Country Status (1)

Country Link
CN (1) CN101834978B (en)

Cited By (9)

* 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
CN102130946A (en) * 2011-01-19 2011-07-20 四川长虹电器股份有限公司 Method for preventing cache from frame skip
CN102708207A (en) * 2012-05-23 2012-10-03 深圳市龙视传媒有限公司 Method and device for receiving processing data and video server
CN103746940A (en) * 2013-12-30 2014-04-23 华为技术有限公司 Network equipment and method for unpacking and outputting messages
CN104375952A (en) * 2013-08-14 2015-02-25 南宁市跃龙科技有限公司 Method for reading data from ring buffer
CN106559704A (en) * 2015-09-28 2017-04-05 青岛海信电器股份有限公司 A kind of processing method of voice data, device and system
WO2019019295A1 (en) * 2017-07-26 2019-01-31 广州路派电子科技有限公司 Ring data buffering implementation method based on synchronization mechanism for embedded system
CN111506512A (en) * 2020-04-24 2020-08-07 上海燧原智能科技有限公司 Debugging information processing method and device, electronic equipment, storage medium and system
CN111866581A (en) * 2020-07-23 2020-10-30 杭州国芯科技股份有限公司 Method for rapidly switching digital television programs

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102130946A (en) * 2011-01-19 2011-07-20 四川长虹电器股份有限公司 Method for preventing cache from frame skip
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
CN102708207A (en) * 2012-05-23 2012-10-03 深圳市龙视传媒有限公司 Method and device for receiving processing data and video server
CN102708207B (en) * 2012-05-23 2015-06-03 深圳市同洲电子股份有限公司 Method and device for receiving processing data and video server
CN104375952A (en) * 2013-08-14 2015-02-25 南宁市跃龙科技有限公司 Method for reading data from ring buffer
CN103746940A (en) * 2013-12-30 2014-04-23 华为技术有限公司 Network equipment and method for unpacking and outputting messages
CN103746940B (en) * 2013-12-30 2018-03-06 华为技术有限公司 A kind of network equipment and the method for unpacking outgoing message
WO2017054379A1 (en) * 2015-09-28 2017-04-06 青岛海信电器股份有限公司 Audio data processing method, apparatus and system
CN106559704A (en) * 2015-09-28 2017-04-05 青岛海信电器股份有限公司 A kind of processing method of voice data, device and system
US10171868B2 (en) 2015-09-28 2019-01-01 Qingdao Hisense Electronics Co., Ltd. Method for processing audio data, terminal and television
CN106559704B (en) * 2015-09-28 2019-07-12 青岛海信电器股份有限公司 A kind of processing method of audio data, device and system
WO2019019295A1 (en) * 2017-07-26 2019-01-31 广州路派电子科技有限公司 Ring data buffering implementation method based on synchronization mechanism for embedded system
CN111506512A (en) * 2020-04-24 2020-08-07 上海燧原智能科技有限公司 Debugging information processing method and device, electronic equipment, storage medium and system
CN111506512B (en) * 2020-04-24 2021-04-23 上海燧原智能科技有限公司 Debugging information processing method and device, electronic equipment, storage medium and system
CN111866581A (en) * 2020-07-23 2020-10-30 杭州国芯科技股份有限公司 Method for rapidly switching digital television programs

Also Published As

Publication number Publication date
CN101834978B (en) 2011-09-28

Similar Documents

Publication Publication Date Title
CN101834978B (en) Method for optimizing digital set-top box EPG system
CN108537139B (en) Online video highlight analysis method based on bullet screen information
US20160189752A1 (en) Constrained system real-time capture and editing of video
WO2017167042A1 (en) Statistical method and apparatus for behaviors of front-end users
CN102932679A (en) Network video previewing system and method
CN103024437B (en) Video data integrity detection method
EP3089470A1 (en) Video editing device
CN1361628A (en) Apparatus and method for displaying guiding and directing bar of electronic programm
CN103281500A (en) Method and device for processing videos
CN102054510A (en) Video preprocessing and playing method and system
CN110362483A (en) Performance data acquisition method, device, equipment and storage medium
CN105955876B (en) Data monitoring processing method and device
CN103747259A (en) Video processing method and device
CN103034581B (en) A kind of embedded system trace debug method and device
CN103596016B (en) A kind of multimedia video data treating method and apparatus
CN106911939A (en) A kind of video transcoding method, apparatus and system
CN106792047B (en) Voice control method and system of smart television
US9465866B2 (en) Task context recovery
CN112818201A (en) Network data acquisition method and device, computer equipment and storage medium
CN102625110A (en) Caching system and caching method for video data
CN102035931A (en) Mobile phone with rapid message-editing function and method
CN115396729B (en) Video target frame determining method, device, equipment and storage medium
CN113728655A (en) Method for monitoring the usage of at least one application executed within an operating system, corresponding device, computer program product and computer-readable carrier medium
CN103002338A (en) Intelligent video play monitoring recognition system
CN102387177B (en) Method and device for downloading audio-visual files

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110928

Termination date: 20151223

EXPY Termination of patent right or utility model