Skip to main content

Question of using DVRExercise app

1 reply [Last post]
lydia98
Offline
Joined: 2010-08-04

Configure to use the Dvrexercise app,I can press PRESS Channel up and down to play five files in the standard configuration.
I want to change the files or the channel map,I see the readme file from the TuneTest application, found at:

$OCAPROOT/apps/qa/org/cablelabs/xlet/TuneTest/readme.txt

I don't know how to get the files' sourceID,pid,freq,qam,please help me!!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
greg80303
Offline
Joined: 2008-07-03

When you run the DvrExerciser (using runRI.sh -setup -autodvr), the runRI script sets up the application to use a hard-coded channel map. It does this by creating a properties file that the Xlet reads. The properties file is $OCAPROOT/bin/$OCAPTC/env/qa/xlet/config.properties. In this file, you can see the channel map:

[code]
# Freq=447MHz QAM=64 ProgramNum=1 SourceID=0x45A
gen_channel_freq_0=447000000
gen_channel_program_number_0=1
gen_channel_qam_0=8

# Freq=489MHz QAM=256 ProgramNum=2 SourceID=0x44C
gen_channel_freq_1=489000000
gen_channel_program_number_1=2
gen_channel_qam_1=16

# Freq=599MHz QAM=256 ProgramNum=2 SourceID=0x?
gen_channel_freq_2=599000000
gen_channel_program_number_2=2
gen_channel_qam_2=16

# Freq=651MHz QAM=256 ProgramNum=25991 SourceID=0x5E9
gen_channel_freq_3=651000000
gen_channel_program_number_3=1
gen_channel_qam_3=16

# Freq=699MHz QAM=256 ProgramNum=25992 SourceID=0x6E4
gen_channel_freq_4=699000000
gen_channel_program_number_4=25992
gen_channel_qam_4=16
[/code]

The RI PC Platform simulates the presence of a headend by playing out MPEG transport stream files when an application requests that the stack tune to a particular frequency/QAM. This headend "carrier map" is configured in the $PLATFORMROOT/platform.cfg file. Here is an excerpt from the file:

[code]
RI.Headend.vlc.frequency.489000000_256QAM = $(RICOMMONROOT)/resources/tunedata/720x480_MPEG-2_CBR_TS_from_ATE_4_programs.mpg

RI.Headend.vlc.frequency.599000000_256QAM = $(RICOMMONROOT)/resources/tunedata/hd_airplane.mpg

RI.Headend.vlc.frequency.651000000_256QAM = $(RICOMMONROOT)/resources/tunedata/background.mpg

RI.Headend.vlc.frequency.699000000_256QAM = $(RICOMMONROOT)/resources/tunedata/galaxy_pingpong.mpg
[/code]

As you can see, when an application tunes to any channel on the 599MHz frequency, the RI PC Platform will playout the [b]hd_airplane.mpg[/b] transport stream file. You may modify the platform.cfg file to create carrier mappings for any transport stream file you wish.

It is important that you keep in mind the concept of Multi-Program Transport Streams (MPTS). Each transport stream may contain 1 or more programs, each identified by a unique program number. The hard-coded channel map in config.properties identifies each service by a transport stream carrier (frequency/QAM) and a program number. If you modify the carrier map in platform.cfg to point to your own MPTS file, you must make sure that the program numbers in your channel map match program numbers found in the transport stream.

G