CN102710981A - Set top box-based method and device for receiving and processing data - Google Patents

Set top box-based method and device for receiving and processing data Download PDF

Info

Publication number
CN102710981A
CN102710981A CN2012101401522A CN201210140152A CN102710981A CN 102710981 A CN102710981 A CN 102710981A CN 2012101401522 A CN2012101401522 A CN 2012101401522A CN 201210140152 A CN201210140152 A CN 201210140152A CN 102710981 A CN102710981 A CN 102710981A
Authority
CN
China
Prior art keywords
psi
data
segment data
buffering area
demultiplexing
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
CN2012101401522A
Other languages
Chinese (zh)
Other versions
CN102710981B (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.)
Shenzhen Jiuzhou Electric Appliance Co Ltd
Original Assignee
Shenzhen Jiuzhou Electric Appliance 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 Jiuzhou Electric Appliance Co Ltd filed Critical Shenzhen Jiuzhou Electric Appliance Co Ltd
Priority to CN201210140152.2A priority Critical patent/CN102710981B/en
Publication of CN102710981A publication Critical patent/CN102710981A/en
Application granted granted Critical
Publication of CN102710981B publication Critical patent/CN102710981B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention is applicable to the field of computer application and provides a set top box-based method and a device for receiving and processing data. The method comprises the steps of storing a plurality of received program specific information/service information (PSI/SI) section data into a hardware multiplexing buffer zone; copying the PSI/SI section data one by one into a plurality of dynamically allocated demultiplexing task buffer zones; and analyzing the PSI/SI section data in the plurality of demultiplexing task buffer zones. In an embodiment of the method and the device, after the PSI/SI section data are received, the PSI/SI section data can be analyzed after being copied once, so that the receiving and processing efficiency of the PSI/SI section data is greatly improved, and even if the PSI/SI section data are transmitted in a high data transmission rate, all section data of the same PSI/SI form can be received in a short time.

Description

A kind of method for receiving and processing data and device based on STB
Technical field
The invention belongs to computer application field, relate in particular to a kind of method for receiving and processing data and device based on STB.
Background technology
The PSI/SI section is a syntactic structure, is used for business information is become the transport stream packets of GB/T 17975.1-2000 (a kind of broadcast level standard).The PSI/SI table is the set with a series of PSI/SI sections of identical table identifier.For can in STB, switch fast program, fast descrambling by the audio/video flow of scrambling, fast program guide information, fast search for program, reproduce audio/video program etc. in real time, need during the STB operation to receive in real time and fast resolving PSI/SI table.In the prior art; The method that STB receives the PSI/SI data flow is: after the hardware demultiplexing module receives the PSI/SI segment data; The PSI/SI segment data is deposited among the buffering area A; The demultiplexing task copies the PSI/SI segment data among the buffering area B to then, the PSI/SI segment data is copied among the buffering area C at last again and resolves.Receive and resolve in the process of PSI/SI segment data at STB, the PSI/SI segment data has been copied twice, and the data copy can take the more CPU time, thereby causes PSI/SI segment data receiving efficiency not high.And when PSI/SI segment data transmission rate is higher, needs a plurality of PSI/SI segment datas cycle of sending just can receive all PSI/SI segment datas in the same PSI/SI table, even possibly can't receive some PSI/SI segment data.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of method for receiving and processing data and device based on STB; Be intended to solve and receive and resolve in the process of PSI/SI segment data at STB; The PSI/SI segment data has been copied twice; And the data copy can take the more CPU time, thereby causes the not high problem of PSI/SI segment data receiving efficiency.
The embodiment of the invention is achieved in that a kind of method for receiving and processing data based on STB, and said method comprises:
The some PSI/SI segment datas that receive are stored to the hardware multiplexing buffering area;
One by one said PSI/SI segment data is copied in the demultiplexing task buffering area of some dynamic assignment;
Resolve the PSI/SI segment data in said some demultiplexing task buffering areas.
Another purpose of the embodiment of the invention is to provide a kind of Data Receiving processing unit based on STB, and said device comprises:
The Data Receiving unit is used for the some PSI/SI segment datas that receive are stored to the hardware multiplexing buffering area;
Data copy cell is used for one by one said PSI/SI segment data being copied to the demultiplexing task buffering area of some dynamic assignment;
The data parsing unit is used for resolving the PSI/SI segment data of said some demultiplexing task buffering areas.
In embodiments of the present invention; Because after receiving the PSI/SI segment data; Only need PSI/SI segment data of copy just can resolve to it; Improved the reception treatment effeciency of PSI/SI segment data greatly,, also can receive all segment datas of same PSI/SI table within a short period of time even the PSI/SI segment data is sent through higher data transmission rate.
Description of drawings
Fig. 1 is the method flow diagram of the preferred embodiment of a kind of method for receiving and processing data based on STB provided by the invention;
Fig. 2 is the device sketch map of the preferred embodiment of a kind of Data Receiving processing unit based on STB provided by the invention.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.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 embodiment of the invention provides a kind of method for receiving and processing data based on STB, after receiving the PSI/SI segment data, only needs PSI/SI segment data of copy just it to be resolved, and has improved the receiving efficiency of PSI/SI segment data greatly.
The invention provides a kind of method for receiving and processing data and device based on STB:
Said method comprises:
The some PSI/SI segment datas that receive are stored to the hardware multiplexing buffering area;
One by one said PSI/SI segment data is copied in the demultiplexing task buffering area of some dynamic assignment;
Resolve the PSI/SI segment data in said some demultiplexing task buffering areas.
Said device comprises:
The Data Receiving unit is used for the some PSI/SI segment datas that receive are stored to the hardware multiplexing buffering area;
Data copy cell is used for one by one said PSI/SI segment data being copied to the demultiplexing task buffering area of some dynamic assignment;
The data parsing unit is used for resolving the PSI/SI segment data of said some demultiplexing task buffering areas.
For technical scheme of the present invention is described, describe through specific embodiment below.
Embodiment one:
Be illustrated in figure 1 as the method flow diagram of the preferred embodiment of a kind of method for receiving and processing data based on STB provided by the invention,, only show the part relevant with the embodiment of the invention for the ease of explanation.
In step S101, the some PSI/SI segment datas that receive are stored to the hardware multiplexing buffering area.
In embodiments of the present invention, STB is after receiving some PSI/SI segment datas, and some PSI/SI segment datas that directly will receive are stored to the hardware multiplexing buffering area.Wherein, the hardware multiplexing buffering area is divided into polylith, and each piece is used to store a PSI/SI segment data, and the maximum length of PSI/SI segment data is 4KB, and therefore a hardware multiplexing buffering area is 4KB to the maximum.Generally speaking, the size of hardware multiplexing buffering area is 4nKB, and n is the integer greater than 1.
In step S102, respectively the PSI/SI segment data is copied in the demultiplexing task buffering area of some dynamic assignment one by one.
In embodiments of the present invention, in STB, preset the demultiplexing task and be used to duplicate the PSI/SI segment data.STB is whenever receiving a PSI/SI segment data, and after it is stored to the hardware multiplexing buffering area, just with the message informing demultiplexing task that has the PSI/SI segment data in the demultiplexing task buffering area.The demultiplexing task is a demultiplexing task of dynamic assignment buffering area then, then the PSI/SI segment data is copied in the demultiplexing task buffering area of this dynamic assignment.By that analogy, one by one the PSI/SI segment data is copied in the demultiplexing task buffering area of some dynamic assignment.Because the maximum length of PSI/SI segment data is 4KB, thereby the size of demultiplexing task buffering area also is 4KB.
In step S103, resolve the PSI/SI segment data in some demultiplexing task buffering areas.
In embodiments of the present invention, the demultiplexing task is obtained the resolving information of PSI/SI segment data in the demultiplexing task buffering area after the PSI/SI segment data is copied to demultiplexing task buffering area.To be higher than the speed that STB is resolved the PSI/SI segment data because STB receives the speed of PSI/SI segment data, the resolving information of PSI/SI segment data in the demultiplexing task buffering area that obtains is added in the formation, wait to be resolved one by one.Therefore, the resolving information of PSI/SI segment data in the some demultiplexing task buffering areas that obtain is added in the formation, resolves the PSI/SI segment data in the multiplexing task buffering area of homographic solution one by one according to the resolving information in the formation.Wherein, resolving information includes but not limited to: the information (because having only the resolving information that just can obtain the PSI/SI segment data when having the PSI/SI segment data in the demultiplexing task buffering area) that has the PSI/SI segment data in demultiplexing task buffer zone address information and the demultiplexing task buffering area.The size that is used for the formation of storing and resolving information is provided with according to the processing speed of resolving the PSI/SI segment data.
In embodiments of the present invention; Preset the parsing task in the STB and be used to resolve the PSI/SI data; The demultiplexing task is every a PSI/SI segment data is copied in the demultiplexing task buffering area of a dynamic assignment after; The message that just will comprise this PSI/SI segment data resolving information is added into rear of queue, and the parsing task is taken out resolving information one by one from the formation stem, and resolves the PSI/SI segment data in the multiplexing task buffering area of homographic solution one by one according to the resolving information that is taken out.
In step S104, discharge the demultiplexing task buffering area of having resolved the PSI/SI segment data.
In embodiments of the present invention; Because after receiving the PSI/SI segment data; Only need PSI/SI segment data of copy just can resolve to it; Improved the reception treatment effeciency of PSI/SI segment data greatly,, also can receive all segment datas of same PSI/SI table within a short period of time even the PSI/SI segment data is sent through higher data transmission rate.
Embodiment two:
Fig. 2 is the structural representation of preferred embodiment that the present invention is based on the Data Receiving processing unit of STB, for the ease of explanation, only shows the part relevant with the embodiment of the invention.This device can be to be built in the unit that software unit, hardware cell or software and hardware in the STB combine, and perhaps is integrated in the application system of STB or STB as suspension member independently.Wherein:
Data Receiving unit 21 is used for the some PSI/SI segment datas that receive are stored to the hardware multiplexing buffering area.
Data copy cell 22 is used for respectively the PSI/SI segment data being copied to one by one the demultiplexing task buffering area of some dynamic assignment.
Data parsing unit 23 is used for resolving the PSI/SI segment data of some demultiplexing task buffering areas.
In embodiments of the present invention, data parsing unit 23 comprises two modules, is respectively:
Resolving information acquisition module 231 is used for the resolving information of some demultiplexing task buffering area PSI/SI segment datas of obtaining is added in the formation.
Parsing module 232 is used for resolving the PSI/SI segment data in the multiplexing task buffering area of homographic solution one by one according to the resolving information of formation.
In embodiments of the present invention, resolving information includes but not limited to: the information that has the PSI/SI segment data in demultiplexing task buffer zone address information and the demultiplexing task buffering area.
Space releasing unit 24 is used to discharge the demultiplexing task buffering area of having resolved the PSI/SI segment data.
In embodiments of the present invention; Because after receiving the PSI/SI segment data; Only need PSI/SI segment data of copy just can resolve to it; Improved the reception treatment effeciency of PSI/SI segment data greatly,, also can receive all segment datas of same PSI/SI table within a short period of time even the PSI/SI segment data is sent through higher data transmission rate.
One of ordinary skill in the art will appreciate that; Realize that all or part of step in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be in being stored in a computer read/write memory medium; Described storage medium is like ROM/RAM, disk, CD etc.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. the method for receiving and processing data based on STB is characterized in that, said method comprises:
The some PSI/SI segment datas that receive are stored to the hardware multiplexing buffering area;
One by one said PSI/SI segment data is copied in the demultiplexing task buffering area of some dynamic assignment;
Resolve the PSI/SI segment data in said some demultiplexing task buffering areas.
2. the method for claim 1 is characterized in that, after the PSI/SI segment data in the said some demultiplexing task buffering areas of said parsing, also comprises:
Discharge the demultiplexing task buffering area of having resolved the PSI/SI segment data.
3. the method for claim 1 is characterized in that, the PSI/SI segment data in the said some demultiplexing task buffering areas of said parsing comprises:
The resolving information of PSI/SI segment data in the said some demultiplexing task buffering areas that obtain is added in the formation;
Resolve the PSI/SI segment data in the multiplexing task buffering area of homographic solution one by one according to the resolving information in the said formation.
4. like the described method of the arbitrary claim of claim 1 to 3, it is characterized in that said resolving information comprises:
The information that has the PSI/SI segment data in said demultiplexing task buffer zone address information and the said demultiplexing task buffering area.
5. Data Receiving processing unit based on STB is characterized in that said device comprises:
The Data Receiving unit is used for the some PSI/SI segment datas that receive are stored to the hardware multiplexing buffering area;
Data copy cell is used for one by one said PSI/SI segment data being copied to the demultiplexing task buffering area of some dynamic assignment;
The data parsing unit is used for resolving the PSI/SI segment data of said some demultiplexing task buffering areas.
6. method as claimed in claim 5 is characterized in that, said device also comprises:
The space releasing unit is used to discharge the demultiplexing task buffering area of having resolved the PSI/SI segment data.
7. method as claimed in claim 5 is characterized in that, said data parsing unit comprises:
The resolving information acquisition module is used for the resolving information of said some demultiplexing task buffering area PSI/SI segment datas of obtaining is added in the formation;
Parsing module is used for resolving the PSI/SI segment data in the multiplexing task buffering area of homographic solution one by one according to the resolving information of said formation.
8. like the described method of the arbitrary claim of claim 5 to 7, it is characterized in that, have the information of PSI/SI segment data in said demultiplexing task buffer zone address information and the said demultiplexing task buffering area.
CN201210140152.2A 2012-05-08 2012-05-08 A kind of method for receiving and processing data based on Set Top Box and device Expired - Fee Related CN102710981B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210140152.2A CN102710981B (en) 2012-05-08 2012-05-08 A kind of method for receiving and processing data based on Set Top Box and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210140152.2A CN102710981B (en) 2012-05-08 2012-05-08 A kind of method for receiving and processing data based on Set Top Box and device

Publications (2)

Publication Number Publication Date
CN102710981A true CN102710981A (en) 2012-10-03
CN102710981B CN102710981B (en) 2015-12-16

Family

ID=46903510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210140152.2A Expired - Fee Related CN102710981B (en) 2012-05-08 2012-05-08 A kind of method for receiving and processing data based on Set Top Box and device

Country Status (1)

Country Link
CN (1) CN102710981B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984576A (en) * 2012-12-21 2013-03-20 四川九洲电器集团有限责任公司 Audio-video stripping method and system for TS media
CN103002339A (en) * 2012-12-06 2013-03-27 青岛海信宽带多媒体技术有限公司 Method and device for acquiring demultiplexing data
CN108737886A (en) * 2017-04-25 2018-11-02 澜至电子科技(成都)有限公司 Fast switching system, method and the top box of digital machine of digital program

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1647499A (en) * 2002-04-08 2005-07-27 汤姆森许可公司 Apparatus and method for data caching to reduce channel change times
CN1855881A (en) * 2005-04-28 2006-11-01 华为技术有限公司 Method for dynamically sharing space of memory
CN101453641A (en) * 2007-11-29 2009-06-10 北京中电华大电子设计有限责任公司 Transmission stream deplexing hardware construction and implementation method
CN101720037A (en) * 2009-12-17 2010-06-02 青岛海信宽带多媒体技术有限公司 Method for dynamically caching DVB data
CN101924865A (en) * 2010-08-10 2010-12-22 福建新大陆通信科技股份有限公司 Method for quickly obtaining data of set top box
CN102098569A (en) * 2011-02-12 2011-06-15 博视联(苏州)信息科技有限公司 Segment data distributing system of PSI/SI (program specific information/service information) table of digital television set top box and method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1647499A (en) * 2002-04-08 2005-07-27 汤姆森许可公司 Apparatus and method for data caching to reduce channel change times
CN1855881A (en) * 2005-04-28 2006-11-01 华为技术有限公司 Method for dynamically sharing space of memory
CN101453641A (en) * 2007-11-29 2009-06-10 北京中电华大电子设计有限责任公司 Transmission stream deplexing hardware construction and implementation method
CN101720037A (en) * 2009-12-17 2010-06-02 青岛海信宽带多媒体技术有限公司 Method for dynamically caching DVB data
CN101924865A (en) * 2010-08-10 2010-12-22 福建新大陆通信科技股份有限公司 Method for quickly obtaining data of set top box
CN102098569A (en) * 2011-02-12 2011-06-15 博视联(苏州)信息科技有限公司 Segment data distributing system of PSI/SI (program specific information/service information) table of digital television set top box and method thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002339A (en) * 2012-12-06 2013-03-27 青岛海信宽带多媒体技术有限公司 Method and device for acquiring demultiplexing data
CN103002339B (en) * 2012-12-06 2016-03-23 青岛海信宽带多媒体技术有限公司 Obtain the method and apparatus of demultiplexed data
CN102984576A (en) * 2012-12-21 2013-03-20 四川九洲电器集团有限责任公司 Audio-video stripping method and system for TS media
CN108737886A (en) * 2017-04-25 2018-11-02 澜至电子科技(成都)有限公司 Fast switching system, method and the top box of digital machine of digital program

Also Published As

Publication number Publication date
CN102710981B (en) 2015-12-16

Similar Documents

Publication Publication Date Title
WO2016011811A1 (en) Memory management method and apparatus, and storage medium
CN104572686A (en) Method and device for processing PPT (power point) files
CN102891809A (en) Interface order-preserving method and system of messages of multi-core network device
CN102740125A (en) System and method for playing streaming media
CN102710981A (en) Set top box-based method and device for receiving and processing data
CN103455439A (en) Local caching device, system and method for providing content caching service
CN102136289B (en) Methods, devices and systems for storing and reading media contents
CN101763433A (en) Data storage system and method
CN103778120A (en) Global file identification generation method, generation device and corresponding distributed file system
CN102270207B (en) Online multimedia information mining oriented data caching method and system
US20140358996A1 (en) Distributed encoding and decoding system, method, and device
US9166804B2 (en) Packet transmission control device, packet transmission control method, and program
US8509254B2 (en) Direct memory access engine physical memory descriptors for multi-media demultiplexing operations
JP6180271B2 (en) Video recording apparatus and video recording method
CN101237405B (en) Data buffer method and device
KR101530441B1 (en) Method and apparatus for processing data based on column
CN101340389B (en) Multicast packet copy method and apparatus
US10976957B2 (en) Reducing multi-stream data write collision in solid-state data storage devices
CN103368966A (en) Server system and transmission method for data flow
KR20100138713A (en) Apparatus and method for creating variable mpeg-2 transport packet
CN104935647A (en) File sharing method and apparatus
CN104333803A (en) Method, equipment and system for preventing frame loss in process of video editing
CN103037246A (en) Encryption content distribution method and conditional access device and system
CN105554573B (en) A kind of data of set top box processing method and set-top box
WO2016188063A1 (en) Method and device for improving ram access efficiency, and computer storage medium

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: 20151216

Termination date: 20190508

CF01 Termination of patent right due to non-payment of annual fee