DECODEPGMNUM DPN DN

Description:

  Specify the program number to decode when the system is receiving a multicast 
  or DVB-ASI stream.  This request setting is ignored for SPTS streams and for 
  file playback.
  
  The program number is stored as a decoder configuration option and will be 
  automatically applied when the system starts or if the configuration changes 
  have been saved.  The default configuration is '1' which forces the system to 
  decode the first program number listed in the PAT table.
  
  If no program number is specified, the command will return the current status.
  If the system is tuning or playing from the file system, the status will 
  return "tuning or not active" in verbose mode or "--" in terse mode.
  
  The decoder does not automatically detect changes to the PAT and PMT PIDs.  If 
  the stream has changed, enter "DPN TUNE" to stop the playback and read in the 
  updated PAT and PMT PIDs.  Playback will resume using the current program number 
  setting and will use the updated PAT and PMT for the selected program.
  
  The 'ACTIVE' option can be used to display only the actively decoding program
  instead of all found program PIDs.
  
  If the requested program PID is not found, the decoder will tune to the first 
  program PID listed in the PAT table.
  
  This command is accessible from the front panel.  DPN TUNE can be achieved by
  selecting program 0.
   

Form:

  Command Handler: DCMD
  <UNIT NAME> DECODEPGMNUM|DPN|DN [ARGUMENTS]
  Argument List:
  Terse    Verbose         Description
      0      TUNE          Retune to the stream using updated PAT and PMT data
                              (case insensitive)
      0x0001 - 0xFFFF      Program Number in PAT and PMT packet (hex format)
      1      -   8191      Program Number in PAT and PMT packet (decimal format)
      ACTIVE               The response will only include the Program information
                              for the currently decoded program. (case insensitive)

Response:

  DISPLAY DECODEPGMNUM RESPONSE
    Verbose- "OK\r\n" to acknowledge receipt of command, followed by
              program data               
             "ERROR- [Description]\r\n" if error, ending command
    Terse-   "0\r\n" to acknowledge receipt of command, followed by
              program data
             "[NON-ZERO NUMERIC VALUE]\r\n" if error, ending command
    "\r\n" concludes display responses (empty line)

Examples:

  
  Verbose command to retrieve current setting (active program is 4):
  *.DCMD DPN <enter>
     Response is: 
  OK
  Program Number 1(0x1) Pid 0x64
  Program Number 2(0x2) Pid 0x6E
  Program Number 4(0x4) Pid 0x82
   Vid_MPEG2_SD Pid 0x83
   Aud_MPEG_L2 Pid 0x84
  Program Number 5(0x5) Pid 0x8C
  Program Number 6(0x6) Pid 0x96
  Program Number 7(0x7) Pid 0xA0
  Program Number 8(0x8) Pid 0xAA
  Program Number 3(0x3) Pid 0x78


  Terse command to retrieve current setting (active program is 4):
  *.DCMD DN <enter>
     Response is:
  0\r\n
  Pgm 1(0x1) 0x64\r\n
  Pgm 2(0x2) 0x6E\r\n
  Pgm 4(0x4) 0x82\r\n
  Vid_MPEG2_SD 0x83\r\n
  Aud_MPEG_L2 0x84\r\n
  Pgm 5(0x5) 0x8C\r\n
  Pgm 6(0x6) 0x96\r\n
  Pgm 7(0x7) 0xA0\r\n
  Pgm 8(0x8) 0xAA\r\n
  Pgm 3(0x3) 0x78\r\n\r\n

  Verbose command to retrieve current active setting (active program is 4):
  *.DCMD DPN ACTIVE<enter>
     Response is: 
  OK
  Program Number 4(0x4) Pid 0x82
   Vid_MPEG2_SD Pid 0x83
   Aud_MPEG_L2 Pid 0x84

  Terse command to retrieve current active setting (active program is 4):
  *.DCMD DN <enter>
     Response is:
  0\r\n
  Pgm 4(0x4) 0x82\r\n
  Vid_MPEG2_SD 0x83\r\n
  Aud_MPEG_L2 0x84\r\n\r\n

  

Notes:

Created By: Adtec Digital