B2C2, Inc. - Software Development Kit

Code Sample Applications > b2settuner

b2settuner

b2settuner is a Windows/Linux command-line application that tests the tuner interface. The desired tuner parameters and PIDs are set via command-line arguments.

Running the Application

Run b2settuner directly from the command prompt by typing b2settuner followed by the required command-line arguments.

Note: Settings provided are for example only. Actual Tuner and PID settings vary with the local network.

Satellite Example:

b2settuner -a eth1 -i s -f 12426 -s 27500 -l 11250 -e auto -o h -k 22 -d b/a -pd 0x501 -pd 0x3e9

To run b2settuner from script, edit a *.bat file script such as run_tavf_sat.bat using required command-line arguments. Run the *.bat file by typing its name (run_tavf_sat.bat) at the command prompt.

Command-line Arguments

Required Arguments

Description

Example

      Note: Some arguments are only required if a certain tuner type is used. For these cases, tuner type will be noted as follows: c (cable), s (satellite), t (terrestrial DVB), a (terrestrial ATSC).    
           
 

-a

 

Adapter name (Linux only).

 

-a eth1

 

-i

 

Tuner type. Valid values are: c (cable), s (satellite), t (terrestrial DVB), a (terrestrial ATSC).

 

-i s

 

-f

 

Transponder Frequency in MHz (c, s, t, a).

 

-f 12426

 

-fk

 

Transponder Frequency in KHz (c, s, t, a).

 

-fk 12426000

 
-s
 

Symbol Rate in KS/s (c, s).

 

-s 27500

 
-m
 

Modulation in QAM (c). Valid values are: 4, 16, 32, 64, 128, 256.

 

-m 16

 
-l
 

LNB Frequency in MHz (s). Note: must be less than Transponder Frequency specified with -f.

 

-l 11250

 
-e
 

FEC (s). Valid values are: 1/2, 2/3, 3/4, 5/6, 7/8, auto.

 

-e auto

 
-o
 

Polarity (s). Valid values are: h (horizontal), v (vertical).

 

-o h

 
-k
 

LNB Selection in kHz(s). Valid values are: 0, 22, 33, 44.

 

-k 22

 
-d
 

DiSEqC (s). Valid values are: n (none), a, b, a/a, a/b, b/a, b/b.

 

-d b/a

 
-g
 

Guard interval (t). Valid values are: 1/4, 1/8, 1/16, 1/32.

 

-t 1/16

 
-pd
 

IP PID(s) as integer or hex (c, s); e.g. 164, 0xa4 or 0XA4. For each IP PID, specify a separate -pd option; e.g. -pd 17 -pd 18, etc. Maximum # of PIDs supported: 32.

 

-pd 0x501

Optional Arguments

 

 

 

-st

 

Skip tuning.

 

 

 
-ma
  MAC address as 6 pairs of hex digits preceded with 0x.   -ma 0x01005e010500
 
-t
  Time duration in seconds to pause while data is received.   -t 10
 
-r
  Number of times to repeat test if not in lock.   -r 10
 
-pia
  Add IP PID (same as -pd).   -pia 0x501
 
-pid
  Delete IP PID given as next argument in decimal or hex(0x).   -pid 0x501
 
-pil
  List IP PIDs.   -pil
 
-pta
  Add TS PID given as next argument in decimal or hex (0x).   PTA 0x601
 
-ptd
  Delete TS PID given as next argument in decimal or hex(0x).   -ptd 0x601
 
-ptl
  List TS PIDs.   -ptl
 
-paa
  Add Audio PID given as next argument in decimal or hex(0x).   -paa 0x701
 
-pad
  Delete Audio PID; PID must not be given as argument.   -pad 0x701
 
-pva
  Add Video PID given as next argument in decimal or hex(0x).   -pva 0x702
 
-pvd
  Delete Video PID; PID must not be given as argument.   -pvd 0x702
 
-pal
  List Audio/Video PIDs.   -pal
 
-ums
  Set unicast MAC address.   -ums 0x01005e010500
 
-uml
  Lists unicast MAC address.   -uml
 
-umr
  Restores unicast MAC address from device.   -umr
 
-mms
  Set multicast MAC address.   -mms 0x01005e010500
 
-mml
  Lists multicast MAC address.   -mml
 
-mmd
  Deletes multicast MAC address.   -mmd 0x01005e010500
  -stid   Set datagram table ID; valid values are: 3E, 3F.   -stid 3E
  -gtid   Get datagram table ID.   -gtid
  -kpa   Add key for given PID and TSC field values;
- PID can be given as decimal or hex (0x) value;
- Possible TSC values are: 01, 10 (even), 11 (odd);
- Key value is given as 8 pairs of hex digits.
  -kpa 0x1234 10 1122334455667788
  -kpd   Delete key for given PID and TSC values;
- PID can be given as decimal or hex (0x) value;
- Valid TSC values are: 01, 10 (even), 11 (odd).
  -kpd 0x1234 11
  -kas   Add key for given PID and ANY TSC field value;
- PID can be given as decimal or hex (0x) value;
- Key value is given as 8 pairs of hex digits.
  -kas 0x1234 1122334455667788
  -kad   Delete key for PID and ANY TSC values   -kad
 
-kgs
  Set global key as 8 pairs of hex digits.   -kgs 1122334455667788
  -kgd   Delete global key.   -kgd
  -kp   Purge all existing keys.   -kp
  -kl   Lists all existing keys.   -kl
  -h   Help.   -h

Return to Top


Copyright © 1998-2002 B2C2, Inc. Proprietary and Confidential