[go: up one dir, main page]

CN109168035B - EPG information control device - Google Patents

EPG information control device Download PDF

Info

Publication number
CN109168035B
CN109168035B CN201811084150.XA CN201811084150A CN109168035B CN 109168035 B CN109168035 B CN 109168035B CN 201811084150 A CN201811084150 A CN 201811084150A CN 109168035 B CN109168035 B CN 109168035B
Authority
CN
China
Prior art keywords
packet
stream output
segment
output port
counter
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.)
Active
Application number
CN201811084150.XA
Other languages
Chinese (zh)
Other versions
CN109168035A (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.)
Sumavision Technologies Co Ltd
Original Assignee
Sumavision Technologies 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 Sumavision Technologies Co Ltd filed Critical Sumavision Technologies Co Ltd
Priority to CN201811084150.XA priority Critical patent/CN109168035B/en
Publication of CN109168035A publication Critical patent/CN109168035A/en
Application granted granted Critical
Publication of CN109168035B publication Critical patent/CN109168035B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/236Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
    • H04N21/23614Multiplexing of additional data and video streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/236Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
    • H04N21/2362Generation or processing of Service Information [SI]
    • 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/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4345Extraction or processing of SI, e.g. extracting service information from an MPEG stream
    • 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/47End-user applications
    • H04N21/482End-user interface for program selection
    • H04N21/4825End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明提供了一种EPG信息控制装置,包括:接收模块、存储模块和控制模块;接收模块用于接收与每个TS流输出端口分别对应的定时信息和状态信息;存储模块用于存储外部设备发送的EPG信息;控制模块分别与接收模块和存储模块连接,用于每隔预设时间间隔,依次对与每个TS流输出端口分别对应的定时信息进行检测,对于每个TS流输出端口,若检测到与起始地址对应的EPG信息到达发送时刻,则根据状态信息判断TS流输出端口是否处于空闲状态,若TS流输出端口处于空闲状态,则将EPG信息插入到TS流输出端口输出的TS流中,缓解现有技术中的用户无法及时收看电视节目的技术问题,达到了使得用户能够及时收看电视节目的技术效果。

Figure 201811084150

The invention provides an EPG information control device, comprising: a receiving module, a storage module and a control module; the receiving module is used for receiving timing information and status information corresponding to each TS stream output port respectively; the storage module is used for storing external equipment EPG information sent; the control module is respectively connected with the receiving module and the storage module, and is used to detect the timing information corresponding to each TS stream output port in turn at every preset time interval, and for each TS stream output port, If it is detected that the EPG information corresponding to the start address arrives at the sending time, judge whether the TS stream output port is in an idle state according to the status information, and if the TS stream output port is in an idle state, insert the EPG information into the output port of the TS stream output port. In the TS stream, the technical problem in the prior art that users cannot watch TV programs in time is alleviated, and the technical effect of enabling users to watch TV programs in time is achieved.

Figure 201811084150

Description

一种EPG信息控制装置A kind of EPG information control device

技术领域technical field

本发明涉及广播电视技术领域,尤其是涉及一种EPG信息控制装置。The present invention relates to the technical field of broadcasting and television, in particular to an EPG information control device.

背景技术Background technique

电子节目指南(electrical program guide,简称EPG)意思是电子节目菜单。IPTV所提供的各种业务的索引及导航都是通过电子节目指南系统来完成的。EPG信息分为基本EPG信息和扩展EPG信息。基本EPG信息是用SI信息表进行描述的。An electrical program guide (EPG for short) means an electronic program menu. The indexing and navigation of various services provided by IPTV are completed through the electronic program guide system. The EPG information is divided into basic EPG information and extended EPG information. The basic EPG information is described by the SI information table.

在实际应用中,SI表格需要每隔一段时间就插入到TS流中进行传输。但是,由于不能对SI表格的发送时间进行精准的控制,往往会导致解码端无法及时接收到SI表格信息,进而无法对TS流中的多个节目的各种数据进行区分和解码,因此,导致用户无法及时收看电视节目。In practical applications, the SI table needs to be inserted into the TS stream for transmission at regular intervals. However, because the sending time of the SI table cannot be precisely controlled, the decoding end often cannot receive the SI table information in time, and thus cannot distinguish and decode various data of multiple programs in the TS stream. Users cannot watch TV programs in time.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明的目的在于提供一种EPG信息控制装置,以缓解现有技术中存在的用户无法及时收看电视节目的技术问题。In view of this, the purpose of the present invention is to provide an EPG information control device to alleviate the technical problem existing in the prior art that users cannot watch TV programs in time.

第一方面,本发明实施例提供了一种EPG信息控制装置,包括:接收模块、存储模块和控制模块;In a first aspect, an embodiment of the present invention provides an EPG information control device, including: a receiving module, a storage module, and a control module;

所述接收模块,用于接收外部设备发送的与每个TS流输出端口分别对应的定时信息和状态信息,所述定时信息包括预设发送时刻和存储所述EPG信息的起始地址;The receiving module is used to receive timing information and status information respectively corresponding to each TS stream output port sent by an external device, and the timing information includes a preset sending time and a starting address for storing the EPG information;

所述存储模块,用于存储所述外部设备发送的EPG信息;The storage module is used to store the EPG information sent by the external device;

所述控制模块分别与所述接收模块和所述存储模块连接,用于每隔预设时间间隔,依次对与每个所述TS流输出端口分别对应的所述定时信息进行检测,对于每个所述TS流输出端口,若检测到与所述起始地址对应的EPG信息到达所述发送时刻,则根据所述状态信息判断所述TS流输出端口是否处于空闲状态,若所述TS流输出端口处于空闲状态,则将所述EPG信息插入到所述TS流输出端口输出的所述TS流中。The control module is respectively connected with the receiving module and the storage module, and is used to detect the timing information corresponding to each of the TS stream output ports in sequence at preset time intervals, and for each of the TS stream output ports. The TS stream output port, if it is detected that the EPG information corresponding to the start address arrives at the sending time, judges whether the TS stream output port is in an idle state according to the status information, if the TS stream output port is in an idle state. If the port is in an idle state, the EPG information is inserted into the TS stream output by the TS stream output port.

结合第一方面,本发明实施例提供了第一方面的第一种可能的实施方式,其中,所述EPG信息包括至少一个段,在每个段中包括至少一个TS包。In conjunction with the first aspect, an embodiment of the present invention provides a first possible implementation of the first aspect, wherein the EPG information includes at least one segment, and each segment includes at least one TS packet.

结合第一方面,本发明实施例提供了第一方面的第二种可能的实施方式,其中,与每个所述TS流输出端口对应的所述定时信息包括段包数、包计数器和定时计数器,若所述EPG信息包括一个段,在每个段中包括多个所述TS包,所述控制模块还用于:In conjunction with the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, wherein the timing information corresponding to each of the TS stream output ports includes the number of segment packets, a packet counter, and a timing counter , if the EPG information includes a segment, and each segment includes a plurality of the TS packets, the control module is further configured to:

对于每个所述TS流输出端口,若读取与所述TS流输出端口对应的定时信息,则在所述定时计数器上加上所述预设时间间隔,若段中的第一个TS包到达第一发送时刻且所述TS流输出端口处于空闲状态,则发送所述第一个TS包,同时在所述包计数器上加1;For each TS stream output port, if the timing information corresponding to the TS stream output port is read, the preset time interval is added to the timing counter, if the first TS packet in the segment When the first sending moment is reached and the TS stream output port is in an idle state, the first TS packet is sent, and 1 is added to the packet counter;

若再次读取与所述TS流输出端口对应的定时信息,则在所述定时计数器上加上所述预设时间间隔,若段中的第二个TS包到达第二发送时刻且所述TS流输出端口处于空闲状态,则发送所述第二个TS包,同时在所述包计数器上加1;If the timing information corresponding to the TS stream output port is read again, the preset time interval is added to the timing counter. If the second TS packet in the segment reaches the second sending time and the TS If the stream output port is in an idle state, the second TS packet is sent, and 1 is added to the packet counter;

若所述包计数器上的值和所述段包数相等,则将所述包计数器和所述定时计数器清零。If the value on the packet counter is equal to the number of segment packets, the packet counter and the timer counter are cleared to zero.

结合第一方面,本发明实施例提供了第一方面的第三种可能的实施方式,其中,与每个所述TS流输出端口对应的所述定时信息包括段包数、包计数器、定时计数器和下一段包地址,若所述EPG信息包括多个段,在每个段中包括多个所述TS包,所述控制模块还用于:In conjunction with the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, wherein the timing information corresponding to each of the TS stream output ports includes the number of segment packets, a packet counter, and a timing counter and the next segment packet address, if the EPG information includes a plurality of segments, each segment includes a plurality of the TS packets, and the control module is further configured to:

对于每个所述TS流输出端口,若读取与所述TS流输出端口对应的定时信息,则在所述定时计数器上加上所述预设时间间隔,若第一个段中的第一个TS包到达与所述第一个TS包对应的发送时刻且所述TS流输出端口处于空闲状态,则发送所述第一个段中的第一个TS包,同时在所述包计数器上加1;For each TS stream output port, if the timing information corresponding to the TS stream output port is read, the preset time interval is added to the timing counter, if the first segment in the first segment TS packets arrive at the sending time corresponding to the first TS packet and the TS stream output port is in an idle state, the first TS packet in the first segment is sent, and at the same time on the packet counter plus 1;

若再次读取与所述TS流输出端口对应的定时信息,则在所述定时计数器上加上所述预设时间间隔,若第一个段中的第二个TS包到达与所述第二个TS包对应的发送时刻且所述TS流输出端口处于空闲状态,则发送所述第一个段中的第二个TS包,同时在所述包计数器上加1;If the timing information corresponding to the TS stream output port is read again, the preset time interval is added to the timing counter. If the second TS packet in the first segment arrives at the same time as the second At the sending time corresponding to each TS packet and the TS stream output port is in an idle state, the second TS packet in the first segment is sent, and 1 is added to the packet counter at the same time;

若所述包计数器上的值和所述段包数相等,则将所述包计数器和所述定时计数器清零,同时根据所述下一段包地址完成第二个段中的多个TS包的发送过程,直至第二个段中的最后一个TS包的发送过程。If the value on the packet counter is equal to the number of packets in the segment, clear the packet counter and the timer counter to zero, and at the same time complete the processing of multiple TS packets in the second segment according to the packet address of the next segment. The sending process until the sending process of the last TS packet in the second segment.

结合第一方面,本发明实施例提供了第一方面的第四种可能的实施方式,其中,在每个所述TS包的包头中包括包计数器和本段包数,若所述EPG信息为业务描述表或者为业务群关联表,则所述控制模块还用于:In conjunction with the first aspect, the embodiment of the present invention provides a fourth possible implementation manner of the first aspect, wherein the packet header of each TS packet includes a packet counter and the number of packets in this segment, if the EPG information is The business description table or the business group association table, the control module is also used for:

对于每个所述TS流输出端口,若检测到与所述起始地址对应的EPG信息到达所述发送时刻,且所述TS流输出端口处于空闲状态,则从第一个段的第一个TS包中提取所述本段包数,同时发送所述第一个段的第一个TS包,同时将所述包计数器加1,同时将所述状态信息由所述空闲状态转换为繁忙状态;For each TS stream output port, if it is detected that the EPG information corresponding to the start address arrives at the sending time, and the TS stream output port is in an idle state, the Extract the number of packets in this segment from the TS packet, send the first TS packet of the first segment at the same time, increase the packet counter by 1, and convert the state information from the idle state to the busy state at the same time ;

若所述本段包数等于所述包计数器上的值,则将所述包计数器清零,同时将所述状态信息的状态由所述繁忙状态转换为所述空闲状态。If the number of packets in the current segment is equal to the value on the packet counter, the packet counter is cleared to zero, and the state of the status information is converted from the busy state to the idle state at the same time.

结合第一方面,本发明实施例提供了第一方面的第五种可能的实施方式,其中,在每个所述TS包的包头中包括端口信息,对于每个所述TS流输出端口,若与所述TS流输出端口对应的状态信息处于繁忙状态,则包括与所述TS流输出端口相一致的端口信息的TS包不能被发送。In conjunction with the first aspect, the embodiment of the present invention provides a fifth possible implementation manner of the first aspect, wherein port information is included in the header of each TS packet, and for each TS stream output port, if If the status information corresponding to the TS stream output port is in a busy state, the TS packet including the port information corresponding to the TS stream output port cannot be sent.

结合第一方面,本发明实施例提供了第一方面的第六种可能的实施方式,其中,还包括:连续计数修改模块;In conjunction with the first aspect, the embodiment of the present invention provides a sixth possible implementation manner of the first aspect, which further includes: a continuous count modification module;

所述连续计数修改模块和所述控制模块连接,用于接收所述控制模块发送的待插入所述TS流中的所述TS包,及根据所述TS包的包头中的所述端口信息,修改所述TS包的包头中的端口计数信息。The continuous count modification module is connected to the control module, and is configured to receive the TS packet to be inserted into the TS stream sent by the control module, and according to the port information in the header of the TS packet, Modify the port count information in the header of the TS packet.

结合第一方面,本发明实施例提供了第一方面的第七种可能的实施方式,其中,还包括:时钟域转换模块;In conjunction with the first aspect, the embodiment of the present invention provides a seventh possible implementation manner of the first aspect, which further includes: a clock domain conversion module;

所述时钟域转换模块和所述连续计数修改模块连接,用于对于每个所述TS流输出端口,获取所述TS流输出端口的基准时钟,将接收到的所述连续计数修改模块发送的待插入所述TS流中的TS包的时钟转换为所述基准时钟。The clock domain conversion module is connected to the continuous count modification module, and is used for obtaining the reference clock of the TS stream output port for each of the TS stream output ports, and sends the received continuous count modification module to the clock. The clock of the TS packet to be inserted into the TS stream is converted into the reference clock.

结合第一方面,本发明实施例提供了第一方面的第八种可能的实施方式,其中,还包括:基准时间间隔模块;In conjunction with the first aspect, the embodiment of the present invention provides an eighth possible implementation manner of the first aspect, which further includes: a reference time interval module;

所述基准时间间隔模块和所述控制模块连接,用于为所述控制模块提供所述预设时间间隔。The reference time interval module is connected to the control module, and is configured to provide the control module with the preset time interval.

结合第一方面,本发明实施例提供了第一方面的第九种可能的实施方式,其中,所述存储模块为Flash存储器。In conjunction with the first aspect, the embodiment of the present invention provides a ninth possible implementation manner of the first aspect, wherein the storage module is a Flash memory.

本发明实施例带来了以下有益效果:本发明实施例提供一种EPG信息控制装置,包括:接收模块、存储模块和控制模块;接收模块,用于接收外部设备发送的与每个TS流输出端口分别对应的定时信息和状态信息,所述定时信息包括预设发送时刻和存储所述EPG信息的起始地址;存储模块,用于存储所述外部设备发送的EPG信息;控制模块分别与所述接收模块和所述存储模块连接,用于每隔预设时间间隔,依次对与每个所述TS流输出端口分别对应的所述定时信息进行检测,对于每个所述TS流输出端口,若检测到与所述起始地址对应的EPG信息到达所述发送时刻,则根据所述状态信息判断所述TS流输出端口是否处于空闲状态,若所述TS流输出端口处于空闲状态,则将所述EPG信息插入到所述TS流输出端口输出的所述TS流中。The embodiments of the present invention bring the following beneficial effects: the embodiments of the present invention provide an EPG information control device, including: a receiving module, a storage module, and a control module; The timing information and status information corresponding to the ports respectively, the timing information includes the preset sending time and the starting address for storing the EPG information; the storage module is used to store the EPG information sent by the external device; the control module is respectively associated with the The receiving module is connected to the storage module, and is used to detect the timing information corresponding to each of the TS stream output ports in turn at preset time intervals, and for each of the TS stream output ports, If it is detected that the EPG information corresponding to the start address arrives at the sending time, it is determined whether the TS stream output port is in an idle state according to the state information, and if the TS stream output port is in an idle state, the The EPG information is inserted into the TS stream output from the TS stream output port.

所以,本发明实施例中的EPG信息控制装置,可以根据定时信息和状态信息对EPG信息的发送过程进行更加精细、更加高效的控制,避免由于解码端无法及时接收到SI表格信息,进而无法对TS流中的多个节目的各种数据进行区分和解码,进而导致的用户无法及时收看电视节目的问题,因此,缓解现有技术中的用户无法及时收看电视节目的技术问题,达到了使得用户能够及时收看电视节目的技术效果。Therefore, the EPG information control device in the embodiment of the present invention can control the sending process of the EPG information more finely and efficiently according to the timing information and the status information, so as to avoid the failure of the decoding end to receive the SI table information in time, thereby preventing the The various data of multiple programs in the TS stream are differentiated and decoded, which leads to the problem that users cannot watch TV programs in time. Therefore, the technical problem that users cannot watch TV programs in time in the prior art is alleviated, so that users can not watch TV programs in time. The technical effect of being able to watch TV programs in time.

本发明的其他特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the description, claims and drawings.

为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below, and are described in detail as follows in conjunction with the accompanying drawings.

附图说明Description of drawings

为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required in the description of the specific embodiments or the prior art. Obviously, the accompanying drawings in the following description The drawings are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative efforts.

图1为本发明实施例提供的EPG信息控制装置的第一种结构示意图;FIG. 1 is a first structural schematic diagram of an EPG information control device provided by an embodiment of the present invention;

图2为本发明实施例提供的EPG信息控制装置的第二种结构示意图;FIG. 2 is a second schematic structural diagram of an EPG information control apparatus provided by an embodiment of the present invention;

图3为本发明实施例提供的EPG信息控制装置的第三种结构示意图;3 is a third schematic structural diagram of an EPG information control device provided by an embodiment of the present invention;

图4为本发明实施例提供的EPG信息控制装置的第四种结构示意图。FIG. 4 is a schematic diagram of a fourth structure of an EPG information control apparatus provided by an embodiment of the present invention.

图标:11-接收模块;12-控制模块;13-存储模块;21-连续计数修改模块;31-时钟域转换模块;41-基准时间间隔模块。Icons: 11-receiving module; 12-control module; 13-storage module; 21-continuous counting modification module; 31-clock domain conversion module; 41-reference time interval module.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of them. example. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

目前,IPTV所提供的各种业务的索引及导航都是通过电子节目指南(EPG)系统来完成的。EPG信息分为基本EPG信息和扩展EPG信息。基本EPG信息是用SI信息表进行描述的。At present, the indexing and navigation of various services provided by IPTV are completed through an Electronic Program Guide (EPG) system. The EPG information is divided into basic EPG information and extended EPG information. The basic EPG information is described by the SI information table.

在实际应用中,SI表格需要每隔一段时间就插入到TS流中进行传输。但是,由于不能对SI表格的发送时间进行精准的控制,往往会导致解码端无法及时接收到SI表格信息,进而无法对TS流中的多个节目的各种数据进行区分和解码,因此,导致用户无法及时收看电视节目,基于此,本发明实施例提供的一种EPG信息控制装置,可以缓解现有技术中的用户无法及时收看电视节目的技术问题,达到使得用户能够及时收看电视节目的技术效果。In practical applications, the SI table needs to be inserted into the TS stream for transmission at regular intervals. However, because the sending time of the SI table cannot be precisely controlled, the decoding end often cannot receive the SI table information in time, and thus cannot distinguish and decode various data of multiple programs in the TS stream. Users cannot watch TV programs in time. Based on this, an EPG information control device provided by the embodiment of the present invention can alleviate the technical problem that users cannot watch TV programs in time in the prior art, and achieve a technology that enables users to watch TV programs in time. Effect.

为便于对本实施例进行理解,首先对本发明实施例所公开的一种EPG信息控制装置进行详细介绍,如图1所示,所述EPG信息控制装置可以包括:接收模块11、存储模块13和控制模块12。In order to facilitate the understanding of this embodiment, an EPG information control device disclosed in the embodiment of the present invention is first introduced in detail. As shown in FIG. 1 , the EPG information control device may include: a receiving module 11 , a storage module 13 and a control device module 12.

本发明实施例中,EPG信息控制装置可以为基于FPGA的EPG信息控制装置,也可以为基于CPLD的EPG信息控制装置。In this embodiment of the present invention, the EPG information control apparatus may be an FPGA-based EPG information control apparatus, or may be a CPLD-based EPG information control apparatus.

所述接收模块11,用于接收外部设备发送的与每个TS流输出端口分别对应的定时信息和状态信息,所述定时信息包括预设发送时刻和存储所述EPG信息的起始地址。The receiving module 11 is configured to receive timing information and status information respectively corresponding to each TS stream output port sent by an external device, where the timing information includes a preset sending time and a start address for storing the EPG information.

其中,外部设备可以为处理器。所述定时信息可以包括:起始地址、发表间隔、段包数、包计数器、定时计数器和下一段包地址。起始地址的位宽可以为9比特,发表间隔的位宽可以是11比特,段包数的位宽可以是3比特,包计数器的位宽可以是3比特,定时计数器的位宽可以是11比特,下一段包地址的位宽可以是10比特。所述预设发送时刻可以根据所述发表间隔得到。起始地址初始化时可以由外部设备设置。发表间隔的设置范围遵循标志协议规定。例如:NIT、SDT和BAT的发表间隔设置范围可以为50ms至2047ms,EIT的发表间隔设置范围可以为25ms至2s。The external device may be a processor. The timing information may include: start address, publishing interval, segment packet number, packet counter, timing counter and next segment packet address. The bit width of the start address can be 9 bits, the bit width of the publication interval can be 11 bits, the bit width of the segment packet number can be 3 bits, the bit width of the packet counter can be 3 bits, and the bit width of the timer counter can be 11 bits. bit, the bit width of the next segment of the packet address can be 10 bits. The preset sending time may be obtained according to the publication interval. The start address can be set by an external device during initialization. The setting range of the publication interval follows the flag protocol. For example, the publication interval setting range of NIT, SDT and BAT can be 50ms to 2047ms, and the publication interval setting range of EIT can be 25ms to 2s.

本发明实施例中,外部设备可以发送数据更新请求给控制模块12,然后控制模块12可以返回允许数据更新通知给外部设备。In this embodiment of the present invention, the external device may send a data update request to the control module 12, and then the control module 12 may return a notification of allowing data update to the external device.

所述存储模块13,用于存储所述外部设备发送的EPG信息。The storage module 13 is configured to store the EPG information sent by the external device.

示例性的,所述存储模块13可以为Flash存储器。Exemplarily, the storage module 13 may be a Flash memory.

本发明实施例中,为了更加有效的利用存储模块13的存储空间,外部设备采用动态存储的方式在存储模块13中存储所述EPG信息。In this embodiment of the present invention, in order to utilize the storage space of the storage module 13 more effectively, the external device stores the EPG information in the storage module 13 in a dynamic storage manner.

所述控制模块12分别与所述接收模块11和所述存储模块13连接,用于每隔预设时间间隔,依次对与每个所述TS流输出端口分别对应的所述定时信息进行检测,对于每个所述TS流输出端口,若检测到与所述起始地址对应的EPG信息到达所述发送时刻,则根据所述状态信息判断所述TS流输出端口是否处于空闲状态,若所述TS流输出端口处于空闲状态,则将所述EPG信息插入到所述TS流输出端口输出的所述TS流中。The control module 12 is respectively connected with the receiving module 11 and the storage module 13, and is used to detect the timing information corresponding to each of the TS stream output ports in turn at every preset time interval, For each TS stream output port, if it is detected that the EPG information corresponding to the start address arrives at the sending time, it is determined whether the TS stream output port is in an idle state according to the state information, and if the If the TS stream output port is in an idle state, the EPG information is inserted into the TS stream output by the TS stream output port.

本发明实施例中,预设时间间隔可以设置为1ms。TS流输出端口可以处于空闲状态,也可以处于繁忙状态。若TS流输出端口正在被插入EPG信息,则TS流输出端口处于繁忙状态,若TS流输出端口未被插入EPG信息,则TS流输出端口处于空闲状态。In this embodiment of the present invention, the preset time interval may be set to 1 ms. The TS stream output port can be in an idle state or a busy state. If the TS stream output port is being inserted with EPG information, the TS stream output port is in a busy state, and if no EPG information is inserted into the TS stream output port, the TS stream output port is in an idle state.

其中,所述EPG信息可以包括至少一个段,在每个段中可以包括至少一个TS包。一个TS包的包长可以为192字节,其中4个字节为私有定义的字节。每个存储模块13的地址存储一个包长为192字节的TS包。The EPG information may include at least one segment, and each segment may include at least one TS packet. The packet length of a TS packet can be 192 bytes, of which 4 bytes are privately defined bytes. The address of each storage module 13 stores a TS packet with a packet length of 192 bytes.

本发明实施例提供一种EPG信息控制装置,包括:接收模块、存储模块和控制模块;接收模块,用于接收外部设备发送的与每个TS流输出端口分别对应的定时信息和状态信息,所述定时信息包括预设发送时刻和存储所述EPG信息的起始地址;存储模块,用于存储所述外部设备发送的EPG信息;控制模块分别与所述接收模块和所述存储模块连接,用于每隔预设时间间隔,依次对与每个所述TS流输出端口分别对应的所述定时信息进行检测,对于每个所述TS流输出端口,若检测到与所述起始地址对应的EPG信息到达所述发送时刻,则根据所述状态信息判断所述TS流输出端口是否处于空闲状态,若所述TS流输出端口处于空闲状态,则将所述EPG信息插入到所述TS流输出端口输出的所述TS流中。An embodiment of the present invention provides an EPG information control device, including: a receiving module, a storage module, and a control module; The timing information includes a preset sending time and a starting address for storing the EPG information; a storage module is used to store the EPG information sent by the external device; the control module is respectively connected with the receiving module and the storage module, using At every preset time interval, the timing information corresponding to each of the TS stream output ports is detected in turn. For each of the TS stream output ports, if the corresponding start address is detected When the EPG information arrives at the sending time, judge whether the TS stream output port is in an idle state according to the state information, and if the TS stream output port is in an idle state, insert the EPG information into the TS stream output in the TS stream output by the port.

所以,本发明实施例中的EPG信息控制装置,可以根据定时信息和状态信息对EPG信息的发送过程进行更加精细、更加高效的控制,避免由于解码端无法及时接收到SI表格信息,进而无法对TS流中的多个节目的各种数据进行区分和解码,进而导致的用户无法及时收看电视节目的问题,因此,缓解现有技术中的用户无法及时收看电视节目的技术问题,达到了使得用户能够及时收看电视节目的技术效果。Therefore, the EPG information control device in the embodiment of the present invention can control the sending process of the EPG information more finely and efficiently according to the timing information and the status information, so as to avoid the failure of the decoding end to receive the SI table information in time, thereby preventing the The various data of multiple programs in the TS stream are differentiated and decoded, which leads to the problem that users cannot watch TV programs in time. Therefore, the technical problem that users cannot watch TV programs in time in the prior art is alleviated, so that users can not watch TV programs in time. The technical effect of being able to watch TV programs in time.

在本发明的又一实施例中,与每个所述TS流输出端口对应的所述定时信息包括段包数、包计数器和定时计数器,若所述EPG信息包括一个段,在每个段中包括多个所述TS包,所述控制模块还用于:In yet another embodiment of the present invention, the timing information corresponding to each of the TS stream output ports includes a segment packet number, a packet counter and a timing counter. If the EPG information includes a segment, in each segment Including a plurality of the TS packets, the control module is also used for:

对于每个所述TS流输出端口,若读取与所述TS流输出端口对应的定时信息,则在所述定时计数器上加上所述预设时间间隔,若段中的第一个TS包到达第一发送时刻且所述TS流输出端口处于空闲状态,则发送所述第一个TS包,同时在所述包计数器上加1。For each TS stream output port, if the timing information corresponding to the TS stream output port is read, the preset time interval is added to the timing counter, if the first TS packet in the segment When the first sending time is reached and the TS stream output port is in an idle state, the first TS packet is sent, and 1 is added to the packet counter at the same time.

示例性的,第一发送时刻可以根据定时信息中的发表间隔得到。Exemplarily, the first sending moment may be obtained according to the publication interval in the timing information.

若再次读取与所述TS流输出端口对应的定时信息,则在所述定时计数器上加上所述预设时间间隔,若段中的第二个TS包到达第二发送时刻且所述TS流输出端口处于空闲状态,则发送所述第二个TS包,同时在所述包计数器上加1。If the timing information corresponding to the TS stream output port is read again, the preset time interval is added to the timing counter. If the second TS packet in the segment reaches the second sending time and the TS When the stream output port is in an idle state, the second TS packet is sent, and 1 is added to the packet counter.

示例性的,第二发送时刻可以根据定时信息中的发表间隔得到。Exemplarily, the second sending moment may be obtained according to the publication interval in the timing information.

若所述包计数器上的值和所述段包数相等,则将所述包计数器和所述定时计数器清零。If the value on the packet counter is equal to the number of segment packets, the packet counter and the timer counter are cleared to zero.

本发明实施例中,若所述包计数器上的值和所述段包数相等,则意味着段中的多个TS包全部被发送出去了。In this embodiment of the present invention, if the value on the packet counter is equal to the number of packets in the segment, it means that all the multiple TS packets in the segment are sent out.

在本发明的又一实施例中,与每个所述TS流输出端口对应的所述定时信息包括段包数、包计数器、定时计数器和下一段包地址,若所述EPG信息包括多个段,在每个段中包括多个所述TS包,所述控制模块还用于:In yet another embodiment of the present invention, the timing information corresponding to each of the TS stream output ports includes a segment packet number, a packet counter, a timing counter and a next segment packet address, if the EPG information includes multiple segments , including a plurality of the TS packets in each segment, and the control module is also used for:

对于每个所述TS流输出端口,若读取与所述TS流输出端口对应的定时信息,则在所述定时计数器上加上所述预设时间间隔,若第一个段中的第一个TS包到达与所述第一个TS包对应的发送时刻且所述TS流输出端口处于空闲状态,则发送所述第一个段中的第一个TS包,同时在所述包计数器上加1。For each TS stream output port, if the timing information corresponding to the TS stream output port is read, the preset time interval is added to the timing counter, if the first segment in the first segment TS packets arrive at the sending time corresponding to the first TS packet and the TS stream output port is in an idle state, the first TS packet in the first segment is sent, and at the same time on the packet counter plus 1.

若再次读取与所述TS流输出端口对应的定时信息,则在所述定时计数器上加上所述预设时间间隔,若第一个段中的第二个TS包到达与所述第二个TS包对应的发送时刻且所述TS流输出端口处于空闲状态,则发送所述第一个段中的第二个TS包,同时在所述包计数器上加1。If the timing information corresponding to the TS stream output port is read again, the preset time interval is added to the timing counter. If the second TS packet in the first segment arrives at the same time as the second At the sending time corresponding to each TS packet and the TS stream output port is in an idle state, the second TS packet in the first segment is sent, and 1 is added to the packet counter at the same time.

若所述包计数器上的值和所述段包数相等,则将所述包计数器和所述定时计数器清零,同时根据所述下一段包地址完成第二个段中的多个TS包的发送过程,直至第二个段中的最后一个TS包的发送过程。If the value on the packet counter is equal to the number of packets in the segment, clear the packet counter and the timer counter to zero, and at the same time complete the processing of multiple TS packets in the second segment according to the packet address of the next segment. The sending process until the sending process of the last TS packet in the second segment.

本发明实施例中,装置首先控制了第一个段中的多个TS包的发送过程,等第一个段中的多个TS包全部被发送出去以后。然后再控制第二个段中的多个TS包的发送过程,直到控制完成最后一个段中的多个TS包的发送过程。In the embodiment of the present invention, the apparatus firstly controls the sending process of the multiple TS packets in the first segment, and waits until all the multiple TS packets in the first segment are sent out. Then control the sending process of the multiple TS packets in the second segment until the control completes the sending process of the multiple TS packets in the last segment.

由于业务描述表和业务群关联表的包标识符相同,所以要避免两个表所在的段中的TS包交叉发送。为了解决这个问题,在本发明的又一实施例中,在每个所述TS包的包头中包括包计数器和本段包数,若所述EPG信息为业务描述表或者为业务群关联表,则所述控制模块还用于:Since the packet identifiers of the service description table and the service group association table are the same, it is necessary to avoid cross-transmission of TS packets in the segments where the two tables are located. In order to solve this problem, in another embodiment of the present invention, the packet header of each TS packet includes a packet counter and the number of packets in this segment. If the EPG information is a service description table or a service group association table, Then the control module is also used for:

对于每个所述TS流输出端口,若检测到与所述起始地址对应的EPG信息到达所述发送时刻,且所述TS流输出端口处于空闲状态,则从第一个段的第一个TS包中提取所述本段包数,同时发送所述第一个段的第一个TS包,同时将所述包计数器加1,同时将所述状态信息由所述空闲状态转换为繁忙状态;For each TS stream output port, if it is detected that the EPG information corresponding to the start address arrives at the sending time, and the TS stream output port is in an idle state, the Extract the number of packets in this segment from the TS packet, send the first TS packet of the first segment at the same time, increase the packet counter by 1, and convert the state information from the idle state to the busy state at the same time ;

若所述本段包数等于所述包计数器上的值,则将所述包计数器清零,同时将所述状态信息的状态由所述繁忙状态转换为所述空闲状态。If the number of packets in the current segment is equal to the value on the packet counter, the packet counter is cleared to zero, and the state of the status information is converted from the busy state to the idle state at the same time.

本发明实施例中,由于利用了与TS流输出端口对应的状态信息,所以能够避免业务描述表和业务群关联表分别所在的段中的TS包交叉发送的问题,提高了TS包发送过程的稳定性和高效性。In the embodiment of the present invention, since the state information corresponding to the output port of the TS stream is used, the problem of cross-transmitting TS packets in the segments where the service description table and the service group association table are located can be avoided, thereby improving the reliability of the TS packet sending process. Stability and efficiency.

在本发明的又一实施例中,在每个所述TS包的包头中包括端口信息,对于每个所述TS流输出端口,若与所述TS流输出端口对应的状态信息处于繁忙状态,则包括与所述TS流输出端口相一致的端口信息的TS包不能被发送。In another embodiment of the present invention, port information is included in the header of each TS packet, and for each TS stream output port, if the state information corresponding to the TS stream output port is in a busy state, Then the TS packet including the port information corresponding to the output port of the TS stream cannot be sent.

在本发明的又一实施例中,如图2所示,所述EPG信息控制装置还可以包括:连续计数修改模块21。In another embodiment of the present invention, as shown in FIG. 2 , the EPG information control apparatus may further include: a continuous count modification module 21 .

所述连续计数修改模块21和所述控制模块12连接,用于接收所述控制模块12发送的待插入所述TS流中的所述TS包,及根据所述TS包的包头中的所述端口信息,修改所述TS包的包头中的端口计数信息。The continuous count modification module 21 is connected to the control module 12, and is configured to receive the TS packet to be inserted into the TS stream sent by the control module 12, and to receive the TS packet according to the packet header of the TS packet. Port information, modify the port count information in the header of the TS packet.

本发明实施例中,连续计数修改模块21可以修改所述TS包的包头中的端口计数信息,提高了信息使用过程的便利性。In the embodiment of the present invention, the continuous count modification module 21 can modify the port count information in the packet header of the TS packet, which improves the convenience of the information use process.

在本发明的又一实施例中,如图3所示,所述EPG信息控制装置还可以包括:时钟域转换模块31。In another embodiment of the present invention, as shown in FIG. 3 , the EPG information control apparatus may further include: a clock domain conversion module 31 .

所述时钟域转换模块31和所述连续计数修改模块21连接,用于对于每个所述TS流输出端口,获取所述TS流输出端口的基准时钟,将接收到的所述连续计数修改模块21发送的待插入所述TS流中的TS包的时钟转换为所述基准时钟。The clock domain conversion module 31 is connected to the continuous count modification module 21, and is used for obtaining the reference clock of the TS stream output port for each of the TS stream output ports, and the received continuous count modification module 21 The clock of the TS packet to be inserted into the TS stream sent is converted into the reference clock.

本发明实施例中,通过在EPG信息控制装置中加入时钟域转换模块31,可以保证TS包的发送过程和使用过程的可靠性和准确性。In the embodiment of the present invention, by adding the clock domain conversion module 31 to the EPG information control device, the reliability and accuracy of the sending process and the using process of the TS packet can be ensured.

在本发明的又一实施例中,如图4所示,所述EPG信息控制装置还可以包括:基准时间间隔模块41。In another embodiment of the present invention, as shown in FIG. 4 , the EPG information control apparatus may further include: a reference time interval module 41 .

所述基准时间间隔模块41和所述控制模块12连接,用于为所述控制模块12提供所述预设时间间隔。The reference time interval module 41 is connected to the control module 12 for providing the control module 12 with the preset time interval.

示例性的,预设时间间隔可以为1ms。Exemplarily, the preset time interval may be 1 ms.

本发明实施例中,由于使用了基准时间间隔模块41为所述控制模块12提供所述预设时间间隔,既可以保证预设时间间隔的准确性和客观性,同时也可以释放控制模块12的资源,使得控制模块12不用再拿出额外的资源来处理预设时间间隔的问题。In this embodiment of the present invention, since the reference time interval module 41 is used to provide the preset time interval for the control module 12, the accuracy and objectivity of the preset time interval can be ensured, and the control module 12 can be released at the same time. resources, so that the control module 12 does not need to take out additional resources to deal with the problem of the preset time interval.

除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对步骤、数字表达式和数值并不限制本发明的范围。The relative steps, numerical expressions and numerical values of the components and steps set forth in these embodiments do not limit the scope of the invention unless specifically stated otherwise.

本发明实施例所提供的装置,其实现原理及产生的技术效果和前述方法实施例相同,为简要描述,装置实施例部分未提及之处,可参考前述方法实施例中相应内容。The implementation principle and technical effects of the device provided by the embodiment of the present invention are the same as those of the foregoing method embodiment. For brief description, for the parts not mentioned in the device embodiment, reference may be made to the corresponding content in the foregoing method embodiment.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the system and device described above, reference may be made to the corresponding process in the foregoing method embodiments, which will not be repeated here.

在这里示出和描述的所有示例中,任何具体值应被解释为仅仅是示例性的,而不是作为限制,因此,示例性实施例的其他示例可以具有不同的值。In all examples shown and described herein, any specific value should be construed as merely exemplary and not as limiting, as other examples of exemplary embodiments may have different values.

应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that like numerals and letters refer to like items in the following figures, so once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.

附图中的流程图和框图显示了根据本发明的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more functions for implementing the specified logical function(s) executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.

另外,在本发明实施例的描述中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。In addition, in the description of the embodiments of the present invention, unless otherwise expressly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it may be a fixed connection or a detachable connection , or integrally connected; it can be a mechanical connection or an electrical connection; it can be a direct connection, or an indirect connection through an intermediate medium, or the internal communication between the two components. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood in specific situations.

在本发明的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. The indicated orientation or positional relationship is based on the orientation or positional relationship shown in the accompanying drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the indicated device or element must have a specific orientation or a specific orientation. construction and operation, and therefore should not be construed as limiting the invention. Furthermore, the terms "first", "second", and "third" are used for descriptive purposes only and should not be construed to indicate or imply relative importance.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. The apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces, indirect coupling or communication connection of devices or units, which may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a processor-executable non-volatile computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

最后应说明的是:以上所述实施例,仅为本发明的具体实施方式,用以说明本发明的技术方案,而非对其限制,本发明的保护范围并不局限于此,尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。Finally, it should be noted that the above-mentioned embodiments are only specific implementations of the present invention, and are used to illustrate the technical solutions of the present invention, but not to limit them. The protection scope of the present invention is not limited thereto, although referring to the foregoing The embodiment has been described in detail the present invention, and those of ordinary skill in the art should understand: any person skilled in the art who is familiar with the technical field of the present invention can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed by the present invention. Or can easily think of changes, or equivalently replace some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be covered in the present invention. within the scope of protection. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (9)

1.一种EPG信息控制装置,其特征在于,包括:接收模块、存储模块和控制模块;1. an EPG information control device, is characterized in that, comprises: receiving module, storage module and control module; 所述接收模块,用于接收外部设备发送的与每个TS流输出端口分别对应的定时信息和状态信息,所述定时信息包括预设发送时刻和存储所述EPG信息的起始地址;The receiving module is used to receive timing information and status information respectively corresponding to each TS stream output port sent by an external device, and the timing information includes a preset sending time and a starting address for storing the EPG information; 所述存储模块,用于存储所述外部设备发送的EPG信息;The storage module is used to store the EPG information sent by the external device; 所述控制模块分别与所述接收模块和所述存储模块连接,用于每隔预设时间间隔,依次对与每个所述TS流输出端口分别对应的所述定时信息进行检测,对于每个所述TS流输出端口,若检测到与所述起始地址对应的EPG信息到达所述发送时刻,则根据所述状态信息判断所述TS流输出端口是否处于空闲状态,若所述TS流输出端口处于空闲状态,则将所述EPG信息插入到所述TS流输出端口输出的所述TS流中;The control module is respectively connected with the receiving module and the storage module, and is used to detect the timing information corresponding to each of the TS stream output ports in sequence at preset time intervals, and for each of the TS stream output ports. The TS stream output port, if it is detected that the EPG information corresponding to the start address arrives at the sending time, judges whether the TS stream output port is in an idle state according to the status information, if the TS stream output port is in an idle state. If the port is in an idle state, then insert the EPG information into the TS stream output by the TS stream output port; 其中,所述EPG信息包括至少一个段,在所述一个段中包括至少一个TS包。Wherein, the EPG information includes at least one segment, and the one segment includes at least one TS packet. 2.根据权利要求1所述的EPG信息控制装置,其特征在于,与每个所述TS流输出端口对应的所述定时信息包括段包数、包计数器和定时计数器,若所述EPG信息包括一个段,在所述一个段中包括多个所述TS包,所述控制模块还用于:2. The EPG information control device according to claim 1, wherein the timing information corresponding to each of the TS stream output ports includes a segment packet number, a packet counter and a timing counter, if the EPG information includes A segment, including a plurality of the TS packets in the one segment, and the control module is further configured to: 对于每个所述TS流输出端口,若读取与所述TS流输出端口对应的定时信息,则在所述定时计数器上加上所述预设时间间隔,若段中的第一个TS包到达第一发送时刻且所述TS流输出端口处于空闲状态,则发送所述第一个TS包,同时在所述包计数器上加1;For each TS stream output port, if the timing information corresponding to the TS stream output port is read, the preset time interval is added to the timing counter, if the first TS packet in the segment When the first sending moment is reached and the TS stream output port is in an idle state, the first TS packet is sent, and 1 is added to the packet counter; 若再次读取与所述TS流输出端口对应的定时信息,则在所述定时计数器上加上所述预设时间间隔,若段中的第二个TS包到达第二发送时刻且所述TS流输出端口处于空闲状态,则发送所述第二个TS包,同时在所述包计数器上加1;If the timing information corresponding to the TS stream output port is read again, the preset time interval is added to the timing counter. If the second TS packet in the segment reaches the second sending time and the TS If the stream output port is in an idle state, the second TS packet is sent, and 1 is added to the packet counter; 若所述包计数器上的值和所述段包数相等,则将所述包计数器和所述定时计数器清零。If the value on the packet counter is equal to the number of segment packets, the packet counter and the timer counter are cleared to zero. 3.根据权利要求1所述的EPG信息控制装置,其特征在于,与每个所述TS流输出端口对应的所述定时信息包括段包数、包计数器、定时计数器和下一段包地址,若所述EPG信息包括多个段,在所述一个段中包括多个所述TS包,所述控制模块还用于:3. The EPG information control device according to claim 1, wherein the timing information corresponding to each of the TS stream output ports includes a segment packet number, a packet counter, a timing counter and a next segment packet address, if The EPG information includes a plurality of segments, and the one segment includes a plurality of the TS packets, and the control module is further configured to: 对于每个所述TS流输出端口,若读取与所述TS流输出端口对应的定时信息,则在所述定时计数器上加上所述预设时间间隔,若第一个段中的第一个TS包到达与所述第一个TS包对应的发送时刻且所述TS流输出端口处于空闲状态,则发送所述第一个段中的第一个TS包,同时在所述包计数器上加1;For each TS stream output port, if the timing information corresponding to the TS stream output port is read, the preset time interval is added to the timing counter, if the first segment in the first segment TS packets arrive at the sending time corresponding to the first TS packet and the TS stream output port is in an idle state, the first TS packet in the first segment is sent, and at the same time on the packet counter plus 1; 若再次读取与所述TS流输出端口对应的定时信息,则在所述定时计数器上加上所述预设时间间隔,若第一个段中的第二个TS包到达与所述第二个TS包对应的发送时刻且所述TS流输出端口处于空闲状态,则发送所述第一个段中的第二个TS包,同时在所述包计数器上加1;If the timing information corresponding to the TS stream output port is read again, the preset time interval is added to the timing counter. If the second TS packet in the first segment arrives at the same time as the second At the sending time corresponding to each TS packet and the TS stream output port is in an idle state, the second TS packet in the first segment is sent, and 1 is added to the packet counter at the same time; 若所述包计数器上的值和所述段包数相等,则将所述包计数器和所述定时计数器清零,同时根据所述下一段包地址完成第二个段中的多个TS包的发送过程,直至第二个段中的最后一个TS包的发送过程。If the value on the packet counter is equal to the number of packets in the segment, clear the packet counter and the timer counter to zero, and at the same time complete the processing of multiple TS packets in the second segment according to the packet address of the next segment. The sending process until the sending process of the last TS packet in the second segment. 4.根据权利要求1所述的EPG信息控制装置,其特征在于,在每个所述TS包的包头中包括包计数器和本段包数,若所述EPG信息为业务描述表或者为业务群关联表,则所述控制模块还用于:4. The EPG information control device according to claim 1, wherein the packet header of each of the TS packets includes a packet counter and the number of packets in this segment, if the EPG information is a service description table or a service group association table, the control module is also used to: 对于每个所述TS流输出端口,若检测到与所述起始地址对应的EPGFor each of the TS stream output ports, if the EPG corresponding to the start address is detected 信息到达所述发送时刻,且所述TS流输出端口处于空闲状态,则从第一个段的第一个TS包中提取所述本段包数,同时发送所述第一个段的第一个TS包,同时将所述包计数器加1,同时将所述状态信息由所述空闲状态转换为繁忙状态;When the information arrives at the sending time, and the TS stream output port is in an idle state, the number of packets in this segment is extracted from the first TS packet of the first segment, and the first segment of the first segment is sent at the same time. TS packets, while adding 1 to the packet counter, and converting the status information from the idle state to the busy state at the same time; 若所述本段包数等于所述包计数器上的值,则将所述包计数器清零,同时将所述状态信息的状态由所述繁忙状态转换为所述空闲状态。If the number of packets in the current segment is equal to the value on the packet counter, the packet counter is cleared to zero, and the state of the status information is converted from the busy state to the idle state at the same time. 5.根据权利要求1所述的EPG信息控制装置,其特征在于,在每个所述TS包的包头中包括端口信息,对于每个所述TS流输出端口,若与所述TS流输出端口对应的状态信息处于繁忙状态,则包括与所述TS流输出端口相一致的端口信息的TS包不能被发送。5 . The EPG information control device according to claim 1 , wherein port information is included in the header of each TS packet, and for each TS stream output port, if the TS stream output port is the same as the TS stream output port. 6 . If the corresponding state information is in the busy state, the TS packet including the port information consistent with the output port of the TS stream cannot be sent. 6.根据权利要求5所述的EPG信息控制装置,其特征在于,还包括:连续计数修改模块;6. The EPG information control device according to claim 5, further comprising: a continuous count modification module; 所述连续计数修改模块和所述控制模块连接,用于接收所述控制模块发送的待插入所述TS流中的所述TS包,及根据所述TS包的包头中的所述端口信息,修改所述TS包的包头中的端口计数信息。The continuous count modification module is connected to the control module, and is configured to receive the TS packet to be inserted into the TS stream sent by the control module, and according to the port information in the header of the TS packet, Modify the port count information in the header of the TS packet. 7.根据权利要求6所述的EPG信息控制装置,其特征在于,还包括:时钟域转换模块;7. The EPG information control device according to claim 6, further comprising: a clock domain conversion module; 所述时钟域转换模块和所述连续计数修改模块连接,用于对于每个所述TS流输出端口,获取所述TS流输出端口的基准时钟,将接收到的所述连续计数修改模块发送的待插入所述TS流中的TS包的时钟转换为所述基准时钟。The clock domain conversion module is connected to the continuous count modification module, and is used for obtaining the reference clock of the TS stream output port for each of the TS stream output ports, and sends the received continuous count modification module to the clock. The clock of the TS packet to be inserted into the TS stream is converted into the reference clock. 8.根据权利要求1所述的EPG信息控制装置,其特征在于,还包括:基准时间间隔模块;8. The EPG information control device according to claim 1, further comprising: a reference time interval module; 所述基准时间间隔模块和所述控制模块连接,用于为所述控制模块提供所述预设时间间隔。The reference time interval module is connected to the control module, and is configured to provide the control module with the preset time interval. 9.根据权利要求1-8任一项所述的EPG信息控制装置,其特征在于,所述存储模块为Flash存储器。9 . The EPG information control device according to claim 1 , wherein the storage module is a Flash memory. 10 .
CN201811084150.XA 2018-09-17 2018-09-17 EPG information control device Active CN109168035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811084150.XA CN109168035B (en) 2018-09-17 2018-09-17 EPG information control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811084150.XA CN109168035B (en) 2018-09-17 2018-09-17 EPG information control device

Publications (2)

Publication Number Publication Date
CN109168035A CN109168035A (en) 2019-01-08
CN109168035B true CN109168035B (en) 2020-11-17

Family

ID=64879562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811084150.XA Active CN109168035B (en) 2018-09-17 2018-09-17 EPG information control device

Country Status (1)

Country Link
CN (1) CN109168035B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207753A (en) * 2006-12-21 2008-06-25 乐金电子(中国)研究开发中心有限公司 Method for implementing automatic refreshing of digital television electronic program guidebooks under multi tuner
CN101521799A (en) * 2009-03-31 2009-09-02 深圳创维数字技术股份有限公司 DTV EPG broadcasting and checking method, DTV EPG broadcasting and checking system and terminal
KR20100084930A (en) * 2009-01-19 2010-07-28 주식회사 대우일렉트로닉스 Method for reducing zapping time which a user feels and ip set top box using this method
EP2302899A2 (en) * 2009-09-24 2011-03-30 Kabushiki Kaisha Toshiba Electronic apparatus and program table display method
KR20160078015A (en) * 2014-12-24 2016-07-04 (주) 이브로드캐스트 Iptv system
CN105744304A (en) * 2016-02-18 2016-07-06 海信电子科技(深圳)有限公司 EPG (Electronic Program Guide) data processing method and device
CN106791938A (en) * 2016-12-27 2017-05-31 深圳Tcl数字技术有限公司 Trailer player method and system
CN108449633A (en) * 2018-03-22 2018-08-24 烽火通信科技股份有限公司 Set-top box cloud frame based on NFV and service implementation method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7962011B2 (en) * 2001-12-06 2011-06-14 Plourde Jr Harold J Controlling substantially constant buffer capacity for personal video recording with consistent user interface of available disk space

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207753A (en) * 2006-12-21 2008-06-25 乐金电子(中国)研究开发中心有限公司 Method for implementing automatic refreshing of digital television electronic program guidebooks under multi tuner
KR20100084930A (en) * 2009-01-19 2010-07-28 주식회사 대우일렉트로닉스 Method for reducing zapping time which a user feels and ip set top box using this method
CN101521799A (en) * 2009-03-31 2009-09-02 深圳创维数字技术股份有限公司 DTV EPG broadcasting and checking method, DTV EPG broadcasting and checking system and terminal
EP2302899A2 (en) * 2009-09-24 2011-03-30 Kabushiki Kaisha Toshiba Electronic apparatus and program table display method
KR20160078015A (en) * 2014-12-24 2016-07-04 (주) 이브로드캐스트 Iptv system
CN105744304A (en) * 2016-02-18 2016-07-06 海信电子科技(深圳)有限公司 EPG (Electronic Program Guide) data processing method and device
CN106791938A (en) * 2016-12-27 2017-05-31 深圳Tcl数字技术有限公司 Trailer player method and system
CN108449633A (en) * 2018-03-22 2018-08-24 烽火通信科技股份有限公司 Set-top box cloud frame based on NFV and service implementation method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
机顶盒电子节目指南系统设计;章素华,王明敏;《有线电视技术》;20150831;全文 *

Also Published As

Publication number Publication date
CN109168035A (en) 2019-01-08

Similar Documents

Publication Publication Date Title
RU2684192C1 (en) Method and apparatus for transmitting service stream in flexible ethernet
US10869106B2 (en) Data transmission method and apparatus, and electronic device
US10506007B2 (en) Apparatus and method for transmitting multimedia data in a broadcast system
EP2847953B1 (en) Apparatus and method of transmitting and receiving packet in a broadcasting and communication system
EP3675398A1 (en) Check code processing method, electronic device, and storage medium
CN108631873B (en) Method and device for transmitting and receiving network management information, transmitting equipment and receiving equipment
US9197373B2 (en) Method, apparatus, and system for retransmitting data packet in quick path interconnect system
EP4024987A1 (en) Timeslot negotiation method and device
CN111263239A (en) Video frame packet loss processing method and related device
US20080126577A1 (en) Method for managing address and video apparatus using the same
CN108460044B (en) Data processing method and device
US9866243B2 (en) Forward error correction codeword synchronization method, device, and system
JPWO2014207899A1 (en) Communication apparatus and communication method
CN106533976B (en) data packet processing method and device
CN109168035B (en) EPG information control device
CN106788916A (en) Data transmission method and data transmission device for bus
CN104079398A (en) Data communication method, device and system
WO2017000737A1 (en) Transmission checking method, node, system and computer storage medium
US20110093483A1 (en) Method and apparatus for data exchange in a distributed system
CN106406793A (en) Identifier configuration method and system and IP (Internet Protocol) address allocation method and system for node machine
CN111212253B (en) Monitoring processing method and device in video conference, electronic equipment and storage medium
CN115801102A (en) Method, device and storage medium for downlink data
TWI682647B (en) Method and device for enhancing the throughput between smart meter and server
CN108200481B (en) RTP-PS stream processing method, device, equipment and storage medium
CN108306848A (en) A kind of data packet length identification method based on media encapsulation format

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20250221

Address after: 100000 north of wenyuying village, Gaoliying Town, Shunyi District, Beijing

Patentee after: BEIJING SUMAVISION TECHNOLOGIES Co.,Ltd.

Country or region after: China

Address before: 100085 Haidian District, Beijing, Shanghai Information Industry Base Development Road 15, 1 buildings.

Patentee before: BEIJING SUMAVISION TECHNOLOGIES Co.,Ltd.

Country or region before: China