Saturday, May 4, 2013

DVB-T2 Common Simulation Platform

This Matlab simulation model is an official project undertaken by DVB / DVB members.   I think I noticed it soon after it was released (during 2011) as open source on Sourceforge (http://sourceforge.net/projects/dvb-t2-csp/), tried if briefly and found it did not work with GNU Octave.

A week or two ago I decided to give it another go.  If you read the file GettingStartedWithCSP.txt, you will find in point 4 a basic command to run:

   run('dvbt2bl_basic','work','stdout',{'DVBT2.STRICT=0'})

This is where I started and so far have fixed/worked around a number of problems.  As the project consists of 262 Matlab files, it is difficult to say how many bugs remains before I will be finished, or if it will be possible.  Yet, some part will be useable at least. I have tried an example where it extracts from a T2-MI file, and saw it printing out Superframe and Frame numbers.  This morning I was playing with he function t2_std_dvbt2_bl and saw it returning LDPC encoding matrices - I will try to do a post on that.

At the moment I am having big problems in the file DVB-T2-CSP-03-02-02/model/tx/tx_dvbt2blicod/t2_tx_dvbt2blicod.m, mainly to do with LDPC-encoding.  Firstly, the Matlab comm function fec.ldpcenc does not exist in Octave.  It returns a struct, which I just tried to make up at the point where the function is called.  Then the call to the function encode fails. It is very difficult to see what is going on there, because it seems that the structure is passed to the function in the place of multiple arguments - an ability that Octave does not seem to have.  I have tried to figure out something to call encode in Octave with the individual arguments.  Now it passes that call, and then crashes in the next statement!

I am planning to release all the changes I am making as a patch to the zip file offered by the Sourceforge project.  It will be placed either as part of the existing Sourceforge project, or on a new project.

Please watch this space, and the Open Discussion Forum of the Sourceforge project.  Any help will be appreciated.  As they say, many hands make light work!

1 comment: