Log in

View Full Version : Teletext packet order


gekod
6th April 2011, 07:25
Hello everyone,

As I'm new to this forum I want to start by introducing me.
I am a Software developer. I am in last semester of University and am doing a project that will be evaluated and will decide whether I successfully pass university or not.

Now my task is to build an EPG and Teletext decoder.
Now I have already don the EPG part and have done all the necessary steps to get to the Teletext packets.
Now I am buffering the packets and trying to get them into the right order.

The channel I am extracting the stream from is sending the Teletext data in Serial mode.
So I read the new page number every time I get a x0 packet and for all the upcoming packets with the same magazine number the contained characters should go to the same page until a new x0 packet defines a new page.

Now the problem is that my magazines and pages are ordered in the correct way but the rows aren't in the correct pages to which they belong.

Now I didn't find any other property to be aware of other than Magazine number, page number which is set by the x0 packet and row number which is actually the packet number.

So am I missing something, or does anyone maybe know what I am doing wrong or has had the same issue?

Thank you


GeKod

Ghitulescu
6th April 2011, 08:35
TXT is not required to be 100% reliable and neither in order. The TV buffers the pages, and this can take a while, so long that even many 100 (index) pages can arrive in between until the loading is fulfilled.

Have a look in ProjectX sources.

gekod
6th April 2011, 09:20
TXT is not required to be 100% reliable and neither in order. The TV buffers the pages, and this can take a while, so long that even many 100 (index) pages can arrive in between until the loading is fulfilled.

Have a look in ProjectX sources.

First of all I want to thank you for your quick reply.

Now the problem is that my program has to extract and Buffer the data itself.
It will be running on a server and it is meant to extract the Teletext data to correctly form the pages and save them (maybe as images, still to decide on that).
Now the problem I have is that I seem not to get the packets in the right order as I get one x0 packet that is meant to set the page number and then the following packets should belong to that page as specified in the Documentation. But this is not the case as I find rows belonging to another page sent before a new x0 packet is sent.
Am I maybe missing something?
I am just looking at the magazine and page number of the x0 packet and as the teletext is sent in serial mode I add all upcoming rows to the page and magazine set by that x0 packet until I receive a new one which will then set a new page number.

I am searching for some days now and I just don't get where the problem is...