diff options
| author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-08-08 15:27:24 +0200 | 
|---|---|---|
| committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-08-08 15:27:24 +0200 | 
| commit | 9525224ac5f026ed2610902970cfc493ecdcc29a (patch) | |
| tree | c40184129f6024965081c084b6bc443b3d6ec340 /examplesite | |
| download | dab-scripts-9525224ac5f026ed2610902970cfc493ecdcc29a.tar.gz dab-scripts-9525224ac5f026ed2610902970cfc493ecdcc29a.tar.bz2 dab-scripts-9525224ac5f026ed2610902970cfc493ecdcc29a.zip | |
Add scripts and example site
Diffstat (limited to 'examplesite')
| -rw-r--r-- | examplesite/configuration.sh | 14 | ||||
| -rw-r--r-- | examplesite/dls/radio1-default.dls | 1 | ||||
| -rw-r--r-- | examplesite/filtertaps.txt | 46 | ||||
| -rw-r--r-- | examplesite/mail-warning.txt | 0 | ||||
| -rw-r--r-- | examplesite/mod.ini | 46 | ||||
| -rw-r--r-- | examplesite/multiplex.mux | 76 | 
6 files changed, 183 insertions, 0 deletions
| diff --git a/examplesite/configuration.sh b/examplesite/configuration.sh new file mode 100644 index 0000000..9ca0942 --- /dev/null +++ b/examplesite/configuration.sh @@ -0,0 +1,14 @@ +# Configuration file for the encoder scripts + +all_radios=( +    "radio1" +    "radio2" ) + +# for each radio, write here the full encoder command. +# encode-jack needs: +#  URL ID dabmux-URL [amplitude correction] +radios[radio1]="./encode-jack.sh http://radio1streamurl.example.com radio1 tcp://localhost:9000" + +# Attenuate radio2 by 3dB +radios[radio2]="./encode-jack.sh http://radio2streamurl.example.com radio2 tcp://localhost:9001 -3" + diff --git a/examplesite/dls/radio1-default.dls b/examplesite/dls/radio1-default.dls new file mode 100644 index 0000000..b79382b --- /dev/null +++ b/examplesite/dls/radio1-default.dls @@ -0,0 +1 @@ +Radio1 - The Best Example DLS Text Ever diff --git a/examplesite/filtertaps.txt b/examplesite/filtertaps.txt new file mode 100644 index 0000000..cd0b28d --- /dev/null +++ b/examplesite/filtertaps.txt @@ -0,0 +1,46 @@ +45 +-0.00110450468492 +0.00120703084394 +-0.000840645749122 +-0.000187368263141 +0.00184351124335 +-0.00355578539893 +0.00419321097434 +-0.00254214904271 +-0.00183473504148 +0.00781436730176 +-0.0125957569107 +0.0126200336963 +-0.00537294941023 +-0.00866683479398 +0.0249746385962 +-0.0356550291181 +0.0319730602205 +-0.00795613788068 +-0.0363943465054 +0.0938014090061 +-0.151176810265 +0.193567320704 +0.791776955128 +0.193567320704 +-0.151176810265 +0.0938014090061 +-0.0363943465054 +-0.00795613788068 +0.0319730602205 +-0.0356550291181 +0.0249746385962 +-0.00866683479398 +-0.00537294941023 +0.0126200336963 +-0.0125957569107 +0.00781436730176 +-0.00183473504148 +-0.00254214904271 +0.00419321097434 +-0.00355578539893 +0.00184351124335 +-0.000187368263141 +-0.000840645749122 +0.00120703084394 +-0.00110450468492 diff --git a/examplesite/mail-warning.txt b/examplesite/mail-warning.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/examplesite/mail-warning.txt diff --git a/examplesite/mod.ini b/examplesite/mod.ini new file mode 100644 index 0000000..c3d2d37 --- /dev/null +++ b/examplesite/mod.ini @@ -0,0 +1,46 @@ +[remotecontrol] +telnet=1 +telnetport=2121 + +[log] +syslog=1 +filelog=1 +filename=/dev/stderr + +[input] +transport=file +source=/dev/stdin +loop=0 + +[modulator] +gainmode=2 +mode=1 +dac_clk_rate=0 +digital_gain=0.5 +rate=2048000 + +[firfilter] +enabled=0 +filtertapsfile=site/filtertaps.txt + +[output] +output=uhd + +[fileoutput] +filename=/dev/null + +[uhdoutput] +device= +type=b200 +master_clock_rate=32768000 +channel=10D +txgain=40 +refclk_source=internal +pps_source=none +behaviour_refclk_lock_lost=crash + +[delaymanagement] +synchronous=0 +management=dynamic +fixedoffset=0.000 +dynamicoffsetfile=site/modulatoroffset diff --git a/examplesite/multiplex.mux b/examplesite/multiplex.mux new file mode 100644 index 0000000..3fcda00 --- /dev/null +++ b/examplesite/multiplex.mux @@ -0,0 +1,76 @@ +; Example configuration file for site. +; Please see ODR-DabMux repository for more details +; +general { +    dabmode 1 +    nbframes 0 +    syslog 1 +    writescca false +    tist false +    statsserverport 12720 +} + +remotecontrol { +    telnetport 12721 +} + +ensemble { +    id 0xabcd +    ecc 0x01 +    label "ODR-mmbTools" +    shortlabel "mmbTools" +    international-table 1 +    local-time-offset auto +} + +services { +    srv_radio1 { +        label "GLOBAL FM+" +        id 0x6543 +    } +    srv_radio2 { +        label "radio2" +        id 0x6542 +    } +} + +subchannels { +    sub_radio1 { +        type dabplus +        inputfile "tcp://*:9000" +        zmq-buffer 80 +        zmq-prebuffering 40 +        bitrate 80 +        id 1 +        protection 3 +    } +    sub_radio2 { +        type dabplus +        inputfile "tcp://*:9001" +        zmq-buffer 80 +        zmq-prebuffering 40 +        bitrate 80 +        id 2 +        protection 3 +    } +} + +components { +    comp_radio1 { +        label "radio1" +        shortlabel "radio1" +        service srv_radio1 +        subchannel sub_radio1 +    } +    comp_radio2 { +        label "radio2" +        shortlabel "radio2" +        service srv_radio2 +        subchannel sub_radio2 +    } +} + +outputs { +    stdout "fifo:///dev/stdout?type=raw" +} + | 
