CN102710981B - A kind of method for receiving and processing data based on Set Top Box and device - Google Patents

A kind of method for receiving and processing data based on Set Top Box and device Download PDF

Info

Publication number
CN102710981B
CN102710981B CN201210140152.2A CN201210140152A CN102710981B CN 102710981 B CN102710981 B CN 102710981B CN 201210140152 A CN201210140152 A CN 201210140152A CN 102710981 B CN102710981 B CN 102710981B
Authority
CN
China
Prior art keywords
psi
segment data
buffering area
demultiplexing
data
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.)
Expired - Fee Related
Application number
CN201210140152.2A
Other languages
Chinese (zh)
Other versions
CN102710981A (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

Landscapes

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

Abstract

The present invention is applicable to computer application field, and provide a kind of method for receiving and processing data based on Set Top Box and device, described method comprises: the some PSI/SI segment datas received are stored to hardware multiplexing buffering area; One by one described PSI/SI segment data is copied in the demultiplexing task buffering area of some dynamic assignment; Resolve the PSI/SI segment data in described some demultiplexing task buffering areas.In embodiments of the present invention, due to after receiving PSI/SI segment data, only need copy PSI/SI segment data just can resolve it, substantially increase the reception treatment effeciency of PSI/SI segment data, even if PSI/SI segment data is sent by higher data transfer rates, all segment datas that same PSI/SI shows also can be received within a short period of time.

Description

A kind of method for receiving and processing data based on Set Top Box and device
Technical field
The invention belongs to computer application field, particularly relate to a kind of method for receiving and processing data based on Set Top Box and device.
Background technology
PSI/SI section is a syntactic structure, for business information being become GB/T17975.1-2000(broadcast level standard) transport stream packets.PSI/SI table is the set of a series of PSI/SI sections with identical table identifier.In order to program, fast descrambling can be switched fast by the audio/video flow of scrambling, fast program guide information, quick search program, reproduce audio/video program etc. in real time in Set Top Box, need real-time reception when Set Top Box is run and fast resolving PSI/SI shows.In the prior art, the method that Set Top Box receives PSI/SI data flow is: after hardware demultiplexing module receives PSI/SI segment data, by PSI/SI segment data stored in the A of buffering area, then PSI/SI segment data copies in the B of buffering area by demultiplexing task, finally PSI/SI segment data is copied in the C of buffering area again and resolves.Receive in Set Top Box and resolve in the process of PSI/SI segment data, PSI/SI segment data has been copied twice, and data copy can take the more CPU time, thus causes PSI/SI segment data receiving efficiency not high.And when PSI/SI segment data transmission rate is higher, needs multiple PSI/SI segment data transmission cycle just can receive all PSI/SI segment datas in same PSI/SI table, even possibly cannot receive some PSI/SI segment data.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of method for receiving and processing data based on Set Top Box and device, be intended to solve and receive and resolve in Set Top Box in the process of PSI/SI segment data, PSI/SI segment data has been copied twice, and data copy can take the more CPU time, thus cause the problem that PSI/SI segment data receiving efficiency is not high.
The embodiment of the present invention is achieved in that a kind of method for receiving and processing data based on Set Top Box, and described method comprises:
The some PSI/SI segment datas received are stored to hardware multiplexing buffering area;
One by one described PSI/SI segment data is copied in the demultiplexing task buffering area of some dynamic assignment;
Resolve the PSI/SI segment data in described some demultiplexing task buffering areas.
Another object of the embodiment of the present invention is to provide a kind of data receiver processing unit based on Set Top Box, and described device comprises:
Data receipt unit, for being stored to hardware multiplexing buffering area by the some PSI/SI segment datas received;
Data copy cell, for copying in the demultiplexing task buffering area of some dynamic assignment by described PSI/SI segment data one by one;
Data Analysis unit, for resolving the PSI/SI segment data in described some demultiplexing task buffering areas.
In embodiments of the present invention, due to after receiving PSI/SI segment data, only need copy PSI/SI segment data just can resolve it, substantially increase the reception treatment effeciency of PSI/SI segment data, even if PSI/SI segment data is sent by higher data transfer rates, all segment datas that same PSI/SI shows also can be received within a short period of time.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of the preferred embodiment of a kind of method for receiving and processing data based on Set Top Box provided by the invention;
Fig. 2 is the device schematic diagram of the preferred embodiment of a kind of data receiver processing unit based on Set Top Box provided by the invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The embodiment of the present invention provides a kind of method for receiving and processing data based on Set Top Box, after receiving PSI/SI segment data, only needs copy PSI/SI segment data just to resolve it, substantially increases the receiving efficiency of PSI/SI segment data.
The invention provides a kind of method for receiving and processing data based on Set Top Box and device:
Described method comprises:
The some PSI/SI segment datas received are stored to hardware multiplexing buffering area;
One by one described PSI/SI segment data is copied in the demultiplexing task buffering area of some dynamic assignment;
Resolve the PSI/SI segment data in described some demultiplexing task buffering areas.
Described device comprises:
Data receipt unit, for being stored to hardware multiplexing buffering area by the some PSI/SI segment datas received;
Data copy cell, for copying in the demultiplexing task buffering area of some dynamic assignment by described PSI/SI segment data one by one;
Data Analysis unit, for resolving the PSI/SI segment data in described some demultiplexing task buffering areas.
In order to technical solutions according to the invention are described, be described below by specific embodiment.
Embodiment one:
Be illustrated in figure 1 the method flow diagram of the preferred embodiment of a kind of method for receiving and processing data based on Set Top Box provided by the invention, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.
In step S101, the some PSI/SI segment datas received are stored to hardware multiplexing buffering area.
In embodiments of the present invention, the some PSI/SI segment datas received, after receiving some PSI/SI segment datas, are directly stored to hardware multiplexing buffering area by Set Top Box.Wherein, hardware multiplexing buffering area is divided into polylith, and each block is for storing a PSI/SI segment data, and the maximum length of PSI/SI segment data is 4KB, and therefore one piece of hardware multiplexing buffering area is 4KB to the maximum.Generally speaking, the size of hardware multiplexing buffering area to be 4nKB, n be greater than 1 integer.
In step s 102, respectively PSI/SI segment data is copied to one by one in the demultiplexing task buffering area of some dynamic assignment.
In embodiments of the present invention, in Set Top Box, preset understanding demultiplexing tasks to be used for copying PSI/SI segment data.Whenever receiving a PSI/SI segment data, and after being stored to hardware multiplexing buffering area, just will there is the message informing demultiplexing task of PSI/SI segment data in demultiplexing task buffering area in Set Top Box.Demultiplexing task is dynamic assignment demultiplexing task buffering area then, then PSI/SI segment data is copied in the demultiplexing task buffering area of this dynamic assignment.By that analogy, one by one PSI/SI segment data is copied in the demultiplexing task buffering area of some dynamic assignment.Maximum length due to PSI/SI segment data is 4KB, and thus the size of demultiplexing task buffering area is also 4KB.
In step s 103, the PSI/SI segment data in some demultiplexing task buffering areas is resolved.
In embodiments of the present invention, demultiplexing task, after PSI/SI segment data is copied to demultiplexing task buffering area, obtains the resolving information of PSI/SI segment data in demultiplexing task buffering area.The speed receiving PSI/SI segment data due to Set Top Box is higher than the speed of set-top box parses PSI/SI segment data, is added in a queue by the resolving information of PSI/SI segment data in the demultiplexing task buffering area of acquisition, one by one etc. to be resolved.Therefore, the resolving information of PSI/SI segment data in the some demultiplexing task buffering areas obtained is added in queue, resolves the PSI/SI segment data in homographic solution demultiplexing tasks buffering area one by one according to the resolving information in queue.Wherein, resolving information includes but not limited to: the information (because only having in demultiplexing task buffering area the resolving information that just can obtain PSI/SI segment data when there is PSI/SI segment data) that there is PSI/SI segment data in demultiplexing task buffer zone address information and demultiplexing task buffering area.Size for the queue of storing and resolving information is arranged according to the processing speed of resolving PSI/SI segment data.
In embodiments of the present invention, parsing task has been preset for resolving PSI/SI data in Set Top Box, a PSI/SI segment data often copies to after in the demultiplexing task buffering area of a dynamic assignment by demultiplexing task, just the message comprising this PSI/SI segment data resolving information is added into rear of queue, parsing task takes out resolving information one by one from queue stem, and resolves the PSI/SI segment data in homographic solution demultiplexing tasks buffering area one by one according to taken out resolving information.
In step S104, the demultiplexing task buffering area of PSI/SI segment data has been resolved in release.
In embodiments of the present invention, due to after receiving PSI/SI segment data, only need copy PSI/SI segment data just can resolve it, substantially increase the reception treatment effeciency of PSI/SI segment data, even if PSI/SI segment data is sent by higher data transfer rates, all segment datas that same PSI/SI shows also can be received within a short period of time.
Embodiment two:
Fig. 2 is the structural representation of the preferred embodiment of the data receiver processing unit that the present invention is based on Set Top Box, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.The unit that this device can be the software unit be built in Set Top Box, hardware cell or software and hardware combine, or be integrated in the application system of Set Top Box or Set Top Box as independently suspension member.Wherein:
Data receipt unit 21, for being stored to hardware multiplexing buffering area by the some PSI/SI segment datas received.
Data copy cell 22, for copying in the demultiplexing task buffering area of some dynamic assignment respectively one by one by PSI/SI segment data.
Data Analysis unit 23, for resolving the PSI/SI segment data in some demultiplexing task buffering areas.
In embodiments of the present invention, Data Analysis unit 23 comprises two modules, is respectively:
Resolving information acquisition module 231, for being added into the resolving information of PSI/SI segment data in the some demultiplexing task buffering areas obtained in queue.
Parsing module 232, for resolving the PSI/SI segment data in homographic solution demultiplexing tasks buffering area one by one according to the resolving information in queue.
In embodiments of the present invention, resolving information includes but not limited to: the information that there is PSI/SI segment data in demultiplexing task buffer zone address information and demultiplexing task buffering area.
Space releasing unit 24, for discharging the demultiplexing task buffering area of having resolved PSI/SI segment data.
In embodiments of the present invention, due to after receiving PSI/SI segment data, only need copy PSI/SI segment data just can resolve it, substantially increase the reception treatment effeciency of PSI/SI segment data, even if PSI/SI segment data is sent by higher data transfer rates, all segment datas that same PSI/SI shows also can be received within a short period of time.
One of ordinary skill in the art will appreciate that, the all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program has come, described program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. based on a method for receiving and processing data for Set Top Box, it is characterized in that, described method comprises:
The some PSI/SI segment datas received are stored to hardware multiplexing buffering area;
One by one described PSI/SI segment data is copied in the demultiplexing task buffering area of some dynamic assignment, specifically comprise: whenever receiving a PSI/SI segment data, and after described PSI/SI segment data is stored to hardware multiplexing buffering area, the message informing demultiplexing task of PSI/SI segment data will be there is, to make demultiplexing task dynamic assignment demultiplexing task buffering area in demultiplexing task buffering area;
Resolve the PSI/SI segment data in described some demultiplexing task buffering areas;
PSI/SI segment data in the described some demultiplexing task buffering areas of described parsing comprises:
The resolving information of PSI/SI segment data in the described some demultiplexing task buffering areas obtained is added in queue;
The PSI/SI segment data in homographic solution demultiplexing tasks buffering area is resolved one by one according to the resolving information in described queue.
2. the method for claim 1, is characterized in that, after the PSI/SI segment data in the described some demultiplexing task buffering areas of described parsing, also comprises:
The demultiplexing task buffering area of PSI/SI segment data has been resolved in release.
3. the method for claim 1, is characterized in that, described resolving information comprises:
The information of PSI/SI segment data is there is in described demultiplexing task buffer zone address information and described demultiplexing task buffering area.
4. based on a data receiver processing unit for Set Top Box, it is characterized in that, described device comprises:
Data receipt unit, for being stored to hardware multiplexing buffering area by the some PSI/SI segment datas received;
Data copy cell, for one by one described PSI/SI segment data being copied in the demultiplexing task buffering area of some dynamic assignment, specifically comprise: whenever receiving a PSI/SI segment data, and after described PSI/SI segment data is stored to hardware multiplexing buffering area, the message informing demultiplexing task of PSI/SI segment data will be there is, to make demultiplexing task dynamic assignment demultiplexing task buffering area in demultiplexing task buffering area;
Data Analysis unit, for resolving the PSI/SI segment data in described some demultiplexing task buffering areas;
Described Data Analysis unit comprises:
Resolving information acquisition module, for being added in queue by the resolving information of PSI/SI segment data in the described some demultiplexing task buffering areas obtained;
Parsing module, for resolving the PSI/SI segment data in homographic solution demultiplexing tasks buffering area one by one according to the resolving information in described queue.
5. data receiver processing unit as claimed in claim 4, it is characterized in that, described device also comprises:
Space releasing unit, for discharging the demultiplexing task buffering area of having resolved PSI/SI segment data.
6. data receiver processing unit as claimed in claim 4, is characterized in that,
Described resolving information comprises: the information that there is PSI/SI segment data in described demultiplexing task buffer zone address information and described 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 CN102710981A (en) 2012-10-03
CN102710981B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002339B (en) * 2012-12-06 2016-03-23 青岛海信宽带多媒体技术有限公司 Obtain the method and apparatus of demultiplexed data
CN102984576B (en) * 2012-12-21 2016-06-01 四川九洲电器集团有限责任公司 A kind of TS transmits method and the system that stream medium audio and video is peeled off
CN108737886B (en) * 2017-04-25 2021-02-26 澜至电子科技(成都)有限公司 System and method for quickly switching digital programs and digital set top box

Citations (4)

* 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
CN101453641A (en) * 2007-11-29 2009-06-10 北京中电华大电子设计有限责任公司 Transmission stream deplexing hardware construction and implementation method
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100466602C (en) * 2005-04-28 2009-03-04 华为技术有限公司 Method for dynamically sharing space of memory
CN101720037B (en) * 2009-12-17 2011-10-12 青岛海信宽带多媒体技术有限公司 Method for dynamically caching DVB data

Patent Citations (4)

* 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
CN101453641A (en) * 2007-11-29 2009-06-10 北京中电华大电子设计有限责任公司 Transmission stream deplexing hardware construction and implementation method
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

Also Published As

Publication number Publication date
CN102710981A (en) 2012-10-03

Similar Documents

Publication Publication Date Title
TWI277329B (en) Processor timing apparatus, systems, and methods
WO2016011811A1 (en) Memory management method and apparatus, and storage medium
CN103202091A (en) Method and system of mapping displayport over a wireless interface
CN102710981B (en) A kind of method for receiving and processing data based on Set Top Box and device
CN102457442A (en) Message sending and reading methods and devices as well as middleware system
CN101763433B (en) Data storage system and method
US9407447B2 (en) Multicast message replication method and device
CN111290979B (en) Data transmission method, device and system
US8509254B2 (en) Direct memory access engine physical memory descriptors for multi-media demultiplexing operations
US20140358996A1 (en) Distributed encoding and decoding system, method, and device
US10708328B2 (en) Hardware assisted media playback and capture synchronization
CN101013382A (en) Method and apparatus for managing session table
US8862783B2 (en) Methods and system to offload data processing tasks
CN202976846U (en) U-disc data processing system
CN110663036B (en) Synchronous processing of data using a system on chip
US20070041407A1 (en) Method and system for transmission and reception, method and apparatus for transmission, and method and apparatus for reception, and program
CN105657540A (en) Video decoding method adapted to Android system and device thereof
CN104281546A (en) Wireless communication apparatus and method
CN104333803A (en) Method, equipment and system for preventing frame loss in process of video editing
CN202652343U (en) System with support of displaying multiple paths of high-definition video signals
CN109039392B (en) Bluetooth device
JP4860549B2 (en) Audio / video multiplexed signal recording system, audio / video multiplexed signal recording method, data transfer program, multiplexed signal recording program, and audio / video multiplexed signal recording apparatus
CN109120986B (en) Video recording processing method, system, chip and storage device
CN103269333A (en) Multimedia accelerating system based on virtualization
CN105554573B (en) A kind of data of set top box processing method and set-top box

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20151216

Termination date: 20190508