



技术领域technical field
本发明属于数字机顶盒技术领域,尤其是数字机顶盒图文显示领域,具体涉及一种VBI Teletext数据的传输方法,保证传输的VBI Teletext数据的完整性。The invention belongs to the technical field of digital set-top boxes, in particular to the field of graphic display of digital set-top boxes, and specifically relates to a transmission method of VBI Teletext data, which ensures the integrity of the transmitted VBI Teletext data.
背景技术Background technique
Teletext功能,即图文功能,在模拟电视时代通过把一些信息(比如天气预报、彩票、足球比赛、球队信息)插入到VBI中的场消隐行中传输给电视,电视再通过解码把信息显示在电视屏幕上,从而为用户提供额外的信息。The Teletext function, that is, the graphic function, is transmitted to the TV by inserting some information (such as weather forecast, lottery, football match, team information) into the field blanking line of the VBI in the era of analog TV, and the TV decodes the information Displayed on the TV screen to provide additional information to the user.
场消隐期VBI(Vertical Blanking Interval),也叫场逆程,电视节目称为正程信号。在625/25的电视信号中,可以利用的电视行是从第6行至第22行,第318至第335行,每场最多可插入17个数据行。The vertical blanking period VBI (Vertical Blanking Interval), also known as the vertical blanking interval, is called the vertical signal in TV programs. In the 625/25 TV signal, the TV lines that can be used are from the 6th line to the 22nd line, and the 318th to the 335th line, and a maximum of 17 data lines can be inserted in each field.
数字电视时代,图文功能得以保留,数字图文信息通过TS Packet(TransportStream Packet,传输流)传输到机顶盒上,机顶盒解复用后得到VBI Teletext数据,再由机顶盒生成模拟信号传输给带图文解码的电视机,由电视机解码后显示内容,机顶盒与电视机以电缆线连接,从而与原有的功能得以兼容。In the era of digital TV, the teletext function can be preserved. The digital teletext information is transmitted to the set-top box through TS Packet (Transport Stream Packet, transport stream). After the set-top box is demultiplexed, the VBI Teletext data is obtained. The decoded TV is decoded by the TV to display the content, and the set-top box is connected to the TV with a cable, so as to be compatible with the original functions.
然而机顶盒的配置不同,性能的差异等因素,导致以机顶盒作为接收平台,接收数字图文信息的同时,也存在者以下的问题:However, the configuration of the set-top box is different, the difference in performance and other factors lead to the following problems when the set-top box is used as a receiving platform to receive digital graphic information:
1、机顶盒的硬件限制,导致发送给电视机的数据比较慢;1. Due to the hardware limitation of the set-top box, the data sent to the TV is relatively slow;
2、前端TS Packet的VBI Teletext数据量大,且没有上限;2. The VBI Teletext of the front-end TS Packet has a large amount of data, and there is no upper limit;
3、没有缓存数据,导致解复用器过滤提取到数据后就直接往硬件上塞数据,以上因素就导致机顶盒传输数据给电视机时丢数据,从而电视机解码显示的Teletext内容就不全。3. There is no cached data, causing the demultiplexer to filter and extract the data and then directly stuff the data on the hardware. The above factors cause the set-top box to lose data when transmitting data to the TV, so that the teletext content displayed by the TV is incomplete.
发明内容Contents of the invention
本发明的目的就是针对硬件限制的情况下,提供一种VBI Teletext数据的传输方法。The purpose of the present invention is exactly to provide a kind of transmission method of VBI Teletext data under the situation of hardware limitation.
本发明方法中,VBI Teletext数据通过传输流数据包传输到机顶盒上,再由机顶盒解复用后提取到VBI Teletext数据,缓存到页缓存区,页缓存区数据传至机顶盒的Teletex模块,Teletex模块通过模拟信号将图文数据传输给带图文解码的电视机,由电视机解码后显示内容;具体是:In the method of the present invention, the VBI Teletext data is transmitted to the set-top box through the transmission stream data packet, and then the VBI Teletext data is extracted after demultiplexing by the set-top box, cached to the page buffer area, and the page buffer area data is transmitted to the Teletex module of the set-top box, the Teletex module The graphic data is transmitted to the TV with graphic decoding through the analog signal, and the content is displayed after being decoded by the TV; specifically:
步骤(1)创建两个并行的任务,分别为写任务和读任务。Step (1) Create two parallel tasks, namely a write task and a read task.
步骤(2)根据数据量动态创建页缓存区,页缓存区实时存储空间能够存储接收到VBI Teletext数据,页缓存区的写入和读取为异步。Step (2) dynamically create a page cache area according to the amount of data, the real-time storage space of the page cache area can store the received VBI Teletext data, and the writing and reading of the page cache area are asynchronous.
所述的页缓存区的存储数据结构与VBI Teletex数据的协议标准相对应,页缓存区以页为单位存储数据,页存储的数据由行数据组成,每一页最多有32行数据,发送数据给机顶盒的Teletext模块时,以行为单位发送。The storage data structure of described page cache area corresponds to the protocol standard of VBI Teletex data, and page cache area stores data with page as unit, and the data of page storage is made up of row data, and each page has 32 rows of data at most, send data When sent to the Teletext module of the set-top box, it is sent in units of lines.
步骤(3)写任务具体是:VBI Teletex数据通过前端传输流传入机顶盒,再由机顶盒的解复用器过滤提取VBI Teletex数据;写任务接收到来自解复用器的一行VBITeletext数据后,将该行数据更新或者添加到页缓存区,当缓存区一页数据更新完后,发送消息给读任务,消息里带有页的页号,告诉读任务页缓存区里的某一页数据已更新完毕,可以去缓存区读该页数据。Step (3) writing task is specifically: VBI Teletex data is passed into the set-top box through the front-end transport stream, and then the demultiplexer of the set-top box filters and extracts the VBI Teletex data; after the writing task receives a row of VBITeletext data from the demultiplexer, the Row data is updated or added to the page cache area. When a page of data in the cache area is updated, a message is sent to the reading task. The message contains the page number of the page, telling the reading task that the data of a certain page in the page cache area has been updated. You can go to the cache to read the page data.
步骤(4)读任务具体是:读任务收到来自写任务的消息后,解析出消息里所带的页号,然后从页缓存区读取该页号所在页对应的数据,然后将该页数据每次以固定行数的数据量发送给机顶盒的Teletex模块,最后机顶盒将数据转换成模拟信号传输给电视机。Step (4) The read task is specifically: after the read task receives the message from the write task, it parses out the page number carried in the message, then reads the data corresponding to the page where the page number is located from the page cache, and then the page The data is sent to the Teletex module of the set-top box with a fixed number of lines each time, and finally the set-top box converts the data into an analog signal and transmits it to the TV.
步骤(5)重复步骤(3)和(4),直到页缓冲区所有有更新的数据都发送至Teletex模块。Step (5) Repeat steps (3) and (4) until all updated data in the page buffer is sent to the Teletex module.
本发明方法将解复用器提取的数字图文数据(即VBI Teletext数据)存到DDR(存储器)的页缓存区,且以页为单位存储,硬件需要发送的数据就从这个页缓存区读取,每次从页缓存区读取一页数据。而且页缓存区的写入和读取是异步的,这样即使硬件发送数据比较慢,解复用过滤提取的数据比较快,也能确保数据的完整性。从页缓存区读取到一页数据后,每次以固定行数的数据(这个固定的值由硬件性能决定,性能越好每次发送的行数就越多,这里也就决定了硬件的发送速度)发给硬件Teletext模块,硬件收到数据后将其转化为模拟信号传输出去。硬件发送完一页数据后,再继续从页缓存区读取下一页数据,如此循环,直到页缓存区里所有有更新的页数据都发送完成。The inventive method stores the digital graphic data (being VBI Teletext data) that the demultiplexer extracts into the page cache area of DDR (memory), and stores it in units of pages, and the data that the hardware needs to send is just read from this page cache area Fetching, one page of data is read from the page cache each time. Moreover, the writing and reading of the page cache area are asynchronous, so that even if the hardware sends data slowly, the data extracted by demultiplexing and filtering is relatively fast, and the integrity of the data can be ensured. After reading a page of data from the page buffer, each time a fixed number of rows of data (this fixed value is determined by the hardware performance, the better the performance, the more rows sent each time, which also determines the hardware performance) Sending speed) to the hardware Teletext module, and the hardware converts the data into an analog signal and transmits it after receiving the data. After the hardware sends a page of data, it continues to read the next page of data from the page cache, and so on, until all updated page data in the page cache is sent.
本发明方法杜绝了解复用器过滤提取到的Teletext数据直接发送给硬件,而是将数据缓存,硬件则是从缓存读取数据,且数据的缓存和硬件读缓存是并行操作,从而减少数据丢失,保证了数据的完整性。The method of the present invention prevents the Teletext data extracted by the demultiplexer from being directly sent to the hardware, but instead caches the data, and the hardware reads the data from the cache, and the data cache and the hardware read cache are operated in parallel, thereby reducing data loss , to ensure the integrity of the data.
附图说明Description of drawings
图1为本发明中数据传输流程的示意图;Fig. 1 is the schematic diagram of data transmission flow among the present invention;
图2为页缓存区存储结构的示意图;FIG. 2 is a schematic diagram of a page buffer storage structure;
图3为本发明中写任务的流程简图;Fig. 3 is a schematic flow chart of writing tasks in the present invention;
图4为本发明中读任务的流程简图。Fig. 4 is a simplified flow chart of the reading task in the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明的技术方案做进一步说明。需要注意,附图仅用于示例说明,不能理解为对本专利的限制。同时,可以以各种形式实现本发明,而不应被这里所阐述的实施方式所限制。提供以下实施方式是让本发明更容易被理解,更完整的展示给本领域相关的技术人员。The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings and embodiments. It should be noted that the drawings are only used for illustration and should not be construed as limiting the patent. Meanwhile, the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. The following embodiments are provided to make the present invention easier to understand and more completely presented to those skilled in the art.
如图1所示,一种VBI Teletext数据的传输方法,VBI Teletext数据(图文数据)通过TS Packet(Transport Stream Packet,传输流数据包)传输到机顶盒上,再由机顶盒解复用后提取到图文数据,缓存到页缓存区,页缓存区数据传至机顶盒的Teletex模块,Teletex模块通过模拟信号将图文数据传输给带图文解码的电视机,由电视机解码后显示内容。As shown in Figure 1, a transmission method of VBI Teletext data, VBI Teletext data (graphic data) is transmitted to the set-top box through TS Packet (Transport Stream Packet, transport stream data packet), and then extracted by the set-top box after demultiplexing The graphic data is cached in the page buffer area, and the data in the page buffer area is transmitted to the Teletex module of the set-top box. The Teletex module transmits the graphic data to the TV with graphic decoding through an analog signal, and the TV decodes and displays the content.
步骤(1)创建两个并行的任务,分别为写任务和读任务。Step (1) Create two parallel tasks, namely a write task and a read task.
步骤(2)根据数据量动态创建页缓存区,页缓存区实时存储空间能够存储接收到VBI Teletext数据,页缓存区的写入和读取为异步,这样即使硬件发送数据比较慢,也确保了数据完整性。Step (2) Dynamically create a page cache according to the amount of data. The real-time storage space of the page cache can store received VBI Teletext data. The writing and reading of the page cache are asynchronous, so that even if the hardware sends data slowly, it is guaranteed data integrity.
如图2所示,页缓存区的存储数据结构与VBI Teletex数据的协议标准相对应;根据VBI Teletex数据的协议标准,一组VBI Teletex数据最多有8本杂志,每本杂志最多有100个主页,部分主页具有子页,即最多有800个主页以及数量不确定的子页,主页的页号取值范围100~899。页缓存区以页为单位存储数据,页存储的数据由行数据组成,每一页最多有32行数据,发送数据给机顶盒的Teletext模块时,以行为单位发送,根据硬件性能的不同,每次发送若干行数据给Teletext模块,硬件处理数据的性能越好,每次发送数据的行数越多。As shown in Figure 2, the storage data structure of the page cache area corresponds to the protocol standard of VBI Teletex data; according to the protocol standard of VBI Teletex data, a set of VBI Teletex data has at most 8 magazines, and each magazine has at most 100 home pages , some homepages have subpages, that is, there are at most 800 homepages and subpages with an uncertain number, and the page number of the homepage ranges from 100 to 899. The page cache area stores data in units of pages. The data stored in a page is composed of row data. Each page has a maximum of 32 rows of data. When sending data to the Teletext module of the set-top box, it is sent in units of rows. According to different hardware performance, each time Send several lines of data to the Teletext module, the better the performance of hardware processing data, the more lines of data sent each time.
步骤(3)如图3所示,写任务具体是:VBI Teletex数据通过前端传输流传入机顶盒,再由机顶盒的解复用器过滤提取VBI Teletex数据;写任务接收到来自解复用器的一行VBI Teletext数据后,将该行数据更新或者添加到页缓存区,当缓存区一页数据更新完后,发送消息给读任务,消息里带有页的页号,告诉读任务页缓存区里的某一页数据已更新完毕,可以去缓存区读该页数据。Step (3) As shown in Figure 3, the write task is specifically: the VBI Teletex data is transmitted to the set-top box through the front-end transport stream, and then the demultiplexer of the set-top box filters and extracts the VBI Teletex data; the write task receives a line from the demultiplexer After VBI Teletext data, update or add the data of this row to the page buffer area. When the data of one page in the buffer area is updated, send a message to the reading task. A page of data has been updated, you can go to the cache to read the page of data.
步骤(4)如图4所示,读任务具体是:读任务收到来自写任务的消息后,解析出消息里所带的页号,然后从页缓存区读取该页号所在页对应的数据,然后将该页数据每次以固定行数的数据量发送给机顶盒的Teletex模块,最后机顶盒将数据转换成模拟信号传输给电视机。Step (4) As shown in Figure 4, the read task is specifically: after the read task receives the message from the write task, it parses out the page number carried in the message, and then reads the page corresponding to the page number from the page cache. Data, and then send the page data to the Teletex module of the set-top box with a fixed number of lines each time, and finally the set-top box converts the data into an analog signal and transmits it to the TV.
步骤(5)重复步骤(3)和(4),直到页缓冲区所有有更新的数据都发送至Teletex模块。Step (5) Repeat steps (3) and (4) until all updated data in the page buffer is sent to the Teletex module.
对数据缓存杜绝了解复用器过滤提取到的Teletext数据直接发送给硬件,而是通过缓存来弥补硬件的限制,这样即使VBI Teletext数据量大,硬件传输速度慢,也确保了数据的完整性。For the data cache, the Teletext data extracted by the demultiplexer is not directly sent to the hardware, but the hardware limitation is compensated by the cache, so that even if the VBI Teletext data volume is large and the hardware transmission speed is slow, the integrity of the data is ensured.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211715689.7ACN115955587A (en) | 2022-12-29 | 2022-12-29 | A Transmission Method of VBI Teletext Data |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211715689.7ACN115955587A (en) | 2022-12-29 | 2022-12-29 | A Transmission Method of VBI Teletext Data |
| Publication Number | Publication Date |
|---|---|
| CN115955587Atrue CN115955587A (en) | 2023-04-11 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211715689.7APendingCN115955587A (en) | 2022-12-29 | 2022-12-29 | A Transmission Method of VBI Teletext Data |
| Country | Link |
|---|---|
| CN (1) | CN115955587A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1893648A (en)* | 1994-04-28 | 2007-01-10 | 开放电视公司 | A distributed computer system |
| CN101202816A (en)* | 2006-12-14 | 2008-06-18 | 英业达股份有限公司 | TV system |
| CN102868926A (en)* | 2012-09-28 | 2013-01-09 | 深圳市九洲电器有限公司 | Device and method for buffering teletext data |
| US20140040494A1 (en)* | 2012-08-02 | 2014-02-06 | Ujam Inc. | Interactive media streaming |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1893648A (en)* | 1994-04-28 | 2007-01-10 | 开放电视公司 | A distributed computer system |
| CN101202816A (en)* | 2006-12-14 | 2008-06-18 | 英业达股份有限公司 | TV system |
| US20140040494A1 (en)* | 2012-08-02 | 2014-02-06 | Ujam Inc. | Interactive media streaming |
| CN102868926A (en)* | 2012-09-28 | 2013-01-09 | 深圳市九洲电器有限公司 | Device and method for buffering teletext data |
| Title |
|---|
| 孙亚敏 李永平 倪宏: "基于DVB机顶盒的VBI图文接收系统", 信息科技, 27 September 2006 (2006-09-27), pages 42 - 46* |
| Publication | Publication Date | Title |
|---|---|---|
| EP1204277B1 (en) | Subliminally embedded keys in video for synchronization | |
| US8913188B2 (en) | Closed caption translation apparatus and method of translating closed captioning | |
| JP2008136204A (en) | Apparatus and method for stream forming, receiving and processing FlexMux streams | |
| CN101933332B (en) | Video data decoder and method for decoding video data and synchronizing subtitle display and decoding video data | |
| CN115955587A (en) | A Transmission Method of VBI Teletext Data | |
| CN102957966A (en) | Player and method for embedding time in video frames of player | |
| CN102169706B (en) | Method and device for storing and playing YUV file | |
| JPH05252123A (en) | Transmission system and receiver | |
| CN111464878B (en) | Video character data encoder, video display system and method | |
| JP3737603B2 (en) | Data communication system and data receiving apparatus | |
| JPS6073575A (en) | Data display | |
| CN108876703B (en) | Data storage method | |
| JP6154182B2 (en) | Video output device, subtitle server device, video output method, and program | |
| CN108989876B (en) | Subtitle display method and device | |
| CN115529489A (en) | Display device, video processing method | |
| JPS58157277A (en) | Receiver for character broadcasting | |
| JPS62158A (en) | Picture receiver | |
| US20120013800A1 (en) | Method for Displaying Captions and Associated Embedded System | |
| CN105472447B (en) | Method and device for inserting VANC data | |
| CN116708908A (en) | HEVC coding and playing method and equipment containing closed captions | |
| JP3927160B2 (en) | Data communication system, data transmission device, and data reception device | |
| JPS6143343Y2 (en) | ||
| Su et al. | A method for teletext display | |
| EP0591880A2 (en) | Receiver circuit of teletext signals with separate acquisition and visualisation functions | |
| CN100380931C (en) | Method for controlling transparency projection service using digital multi-media broadcast |
| 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 | ||
| CB02 | Change of applicant information | Country or region after:China Address after:310012 5-6 / F, block a, East Software Park Innovation Building, 90 Wensan Road, Hangzhou City, Zhejiang Province Applicant after:Hangzhou Guoxin Microelectronics Co.,Ltd. Address before:310012 5-6 / F, block a, East Software Park Innovation Building, 90 Wensan Road, Hangzhou City, Zhejiang Province Applicant before:HANGZHOU NATIONALCHIP SCIENCE & TECHNOLOGY Co.,Ltd. Country or region before:China | |
| CB02 | Change of applicant information |