Sie sind auf Seite 1von 28

CONFIDENTIAL

Beschreibung der Software fr Modulatormodul Version 2 (Master)

Autor: Projekt: Beschreibung: Dateiname: Erstellt am: Zuletzt gendert am: Version: Seitenanzahl: Gedruckt am:

KLA 58102

D:\SVN\5x\58102\DOC\DVB_Modulator_Master.doc 25.07.2011 10.06.2013 12:00:00 1 18 10.06.2013 12:00:00

Inhalt
CONFIDENTIAL ................................................................................................................................................. 1 Beschreibung der Software fr Modulatormodul ................................................................................................ 1 Version 2 (Master) .............................................................................................................................................. 1 1 Software........................................................................................................................................................... 3 1.1 Initialisierung ............................................................................................................................................. 3 1.2 EEPROM-Adressen .................................................................................................................................. 3 1.2.1 I2C EEPROM Adresse 0xA6 .............................................................................................................. 3 1.2.2 I2C EEPROM Adresse 0xA0 (Init data EEPROM) ............................................................................. 4 1.2.3 EEPROM von Converter Modul ......................................................................................................... 5 1.3 EEPROM Unterschied .............................................................................................................................. 5 2 MPT Befehle .................................................................................................................................................... 7 2.1 Liste aller 1- und 2-Byte Befehle ............................................................................................................... 7 2.2 Liste aller TSoIP Befehle ........................................................................................................................12 2.3 Liste aller MTS Befehle ...........................................................................................................................14

1 Software
1.1 Initialisierung 1.2 EEPROM-Adressen
Auf dem Modulator Modul befinden sich 2 externe EEPROMs (je 256K), die ber I2C an den AVR32Controller angebunden sind.

1.2.1 I2C EEPROM Adresse 0xA6


Bei einem Zugriff ber RS232/485 hat das EEPROM einen Offset von 0x8000h.
Adresse 0x0000 0x0001 0x0002 0x0003 0x0004 0x0005 Bezeichnung im Quellcode EE1MOD_TEMPCOMPSET EE1MOD_FREQCOMPSET EE1MOD_LEVELCOMPSET EE1MOD_FREQLEVELCOMPSET EE1MOD_MODPLLGAINSET EE1MOD_LOSUPPRESSION Bytes 1 1 1 1 1 1 Beschreibung Bei Inhalt 0xFF wird die Temperatur Kompensation Tabelle vorbelegt. Bei Inhalt 0xFF wird Frequenz Kompensation Tabelle vorbelegt. Bei Inhalt 0xFF wird Gain Kompensation Tabelle vorbelegt. Bei Inhalt 0xFF wird FREQ/Level Kompensation Tabelle vorbelegt. Bei Inhalt 0xFF wird PLL-Gain Tabelle vorbelegt. Wert 2 bedeutet, dass die I u. Q Tabellenwerte von EEMOD1_LOSUPPR_TABSTART halbiert werden mssen Leveloffset +/- in 0.1dBm Leveloffset +/- in 0.1dBm !0xFF Spectrum inversion aktiv Frequenzkorrektur Offset RMS Messung Korrektur 0xFF kein Testbild im EEPROM 0xFF Default picture PLL-Gain (fr nicht L-Band Version) Tabelle fr Temperaurkompensation Tabelle fr Temperaturkompensation Tabelle fr Frequenzkorrektur L-Band Tabelle fr Frequenzkorrektur VHF Tabelle fr Gainkorrektur VHF Tabelle fr Gainkorrektru L-Band Authorisierungs Code Tabelle fr Mod. PLL-Gain L-Band Freq1 in MHz [2 Bytes], I1 [signed char], Q1 [signed char], Freq2, I2, Q2, ... (Freq-Lvl-Matrix) 27 tAbellen zu je 31 Int-Werten Testbild Start Testbild Ende

0x0007 0x0008 0x0009 0x000A 0x000B 0x000C 0x000D 0x000E 0x0010 0x0030 0x0050 0x0090 0x0100 0x0108 0x0110 0x0150 0x0180 0x0200 0x1000 0x6FFF

EE1MOD_LVLOFFS_CW_L EE1MOD_LVLOFFS_CW_V EE1MOD_SPECINV EE1MOD_FREQCOMPADJ EE1MOD_RMSCORR EE1MOD_TESTPICSTORED EE1MOD_TESTPICACTIVE EE1MOD_PLLGAIN EE1MOD_LTEMPCOMP EE1MOD_VTEMPCOMP EE1MOD_LFREQCOMP EE1MOD_VFREQCOMP EE1MOD_LEVELCOMP_V EE1MOD_LEVELCOMP_L EE1MOD_AUTHCODE EE1MOD_PLLGAINTAB EE1MOD_LOSUPPR_TABSTART EE1MOD_FREQLVLTABSTART EE1MOD_STILLPICSTART EE1MOD_STILLPICEND

1 1 1 1 1 1 1 1 30 30 54 38 8 8 8 19 ? 1774 24K

1.2.2 I2C EEPROM Adresse 0xA0 (Init data EEPROM)


Bei einem Zugriff ber RS232/485 hat das EEPROM keinen Offset.
Adresse 0x0001 0x0002 0x0003 0x0004 0x0005 0x0006 0x0007 0x0008 Bezeichnung im Quellcode EE2MOD_SETDEFAULT EE2MOD_BANDMODE EE2MOD_DEVADR EE2MOD_RS232 EE2MOD_AUTOSAVE EE2MOD_CONFIG EE2MOD_OUTPUT_WATCHDOG EE2MOD_FREQBORDER Bytes 1 1 1 1 1 1 1 1 Beschreibung Bei Inhalt 0xFF wird das EEPROM vorbelegt Gertetyp: 0x01 = VHF, 0x02 L-Band, 0x03 = V+L Band, Sonst standartmig als L-Band. Modulator multipoint Adresse RS232/485 Konfiguration 0=off >0= Zeit in Sekunden Configuration byte Packet delay 0x01 MPT Watchdog an, sonst aus 0xFF: Frequenzgrenzen automatisch einstellen !0xFF: Auto Einstellung deaktiviert !0xAA: First start, load initial values Anzahl der gespeicherten Alarme Start im Ringpuffer fr Stored Events Anzahl gespeicherter Events in Ringpuffer 0x01: FIR Tabelle in EEPROM gltig Bit0: Original Const Tabelle in EEPROM gltig Bit1: Manipulierte Const. Tabelle in EEP gltig 0xFF: Inaktiv, sonst aktiv Jahr = 2000+EE2MOD_YEAR 0xFF: 10Mhz wird nicht zum Ausgang geschaltet 0xFF: 25V Ausgang aus 0x01: EE2MOD_RS232 Einstellungen gltig 0x01: MTS global configuration parameter in EEPROM valid. 0x01: MTS channel specific parameter in EEPROM valid. Bit0: =0 DVB input not in sync. (Warning) Bit0: =1 DVB input not in sync (Alarm) Bit1: =0 FIFO full (Warning) Bit1: =1 FIFO full (Alarm) 0x01: BIASTEE module is available 0xFF: keine BISS Variante, sonst mit BISS 12 Bit DAC AD5325 Bits zeigen an, welcher Block manipuliert wurde Bit0: =0 FIR standart Parameter aktiv Bit0: =1 FIR manipulierte Parameter aktiv Bit1: =0 Standart constellation Parameter aktiv Bit1: =1 Manipulierte constel. Parameter aktiv FPGA Version, deren standart constellation parameter im EEPROM abgespeichert sind !0x01: Load initial constellation table from

0x0009 0x000A 0x000B 0x000C 0x000D 0x000E 0x000F 0x0010 0x0011 0x0012 0x0013 0x0014 0x0015 0x0016

EE2MOD_FIRSTSTART EE2MOD_STALMCOUNT EE2MOD_STEVTPOS0 EE2MOD_STEVTCOUNT EE2MOD_GDCFIRTAB_VALID EE2MOD_GDCCONSTTAB_VALID EE2MOD_EXTMUTE EE2MOD_YEAR EE2MOD_10MHZ_OUT EE2MOD_24VOLT_OUT EE2MOD_RS232_VALID EE2MOD_MTS_MCFG_VALID EE2MOD_MTS_CCFG_VALID EE2MOD_MASKWARNING

1 1 1 1 1 1 1 1 1 1 1 1 1 1

0x0017 0x0018 0x0019 0x001B 0x0027

EE2MOD_BIASTEE EE2MOD_BISSMODE EE2MOD_DACVAL EE2MOD_GDCBLOCK_FIR EE2MOD_GDCPARAMACTIVE

1 1 2 4 1

0x0028 0x003E

EE2MOD_FPGA_ID EE2MOD_GDCMANITBL_INIT

5 1

0x0048 0x0050 0x0057 0x0058 0x005A 0x0100 0x0400 0x0500 0x0600 0x0700 0x09FE 0x0A00 0x0FFF 0x1000 0x2000 0x2800 0x3000 0x3800 0x5000 0x5500 0x6000 0x6200 0x6400 0x6600 0x6800 0x7200 0x7600 0x7700

EE2MOD_BISS_ESW EE2MOD_BISS_CSW EE2MOD_BISS_CODECNT EE2MOD_BIAST_CURRENT EE2MOD_BIAST_VOLTAGE EE2MOD_INSTSTATE EE2MOD_STEVT_START EE2MOD_STALM_START EE2MOD_MTS_MCFG EE2MOD_MTS_MCFG_INIT EE2MOD_PIDTAB_CNT EE2MOD_PIDTAB EE2MOD_UPLOADER EE2MOD_GDCFIRRAMTABLE EE2MOD_GDCCONSTTABLEORIG_I EE2MOD_GDCCONSTTABLENEW_I EE2MOD_GDCCONSTTABLEORIG_Q EE2MOD_GDCCONSTTABLENEW_Q EE2MOD_MTS_CCFG EE2MOD_MTS_CCFG_INIT EE2MOD_TSOIP_SCAT2_CFG_INI EE2MOD_TSOIP_SCAT2_CFG EE2MOD_TSOIP_SCAT3_CFG_INI EE2MOD_TSOIP_SCAT3_CFG EE2MOD_TSOIP_SCAT81_CFG_INI EE2MOD_TSOIP_SCAT81_CFG EE2MOD_TSOIP_SCAT84_CFG_INI EE2MOD_TSOIP_SCAT84_CFG

8 7 1 2 2 768 256 256

FPGA and save into EEPROM Encr. Session Word Clear Session Word Anzahl der Codeeingaben innerhalb 5 Minuten Current calibration value Voltage calibraion value Speicherbereich fr Savestate Speicherbereich fr Stored events Speicherbereich fr Stored alarms Start address of MTS global conf. structure Start addr. of MTS init. global conf. structure

1 4K 2K 2K 2K 2K

!=0xFF Uploader starten FIR-RAM Tabelle Original constellation Tabelle I Manipulierte constellation Tabelle I Original constellation Tabelle Q Manipulierte constellation Tabelle Q Start addr. of MTS channel spec. config Start addr. of MTS initial channel spec. config Start addr. of TSOIP category2 init values Start addr. of TSOIP category2 values Start addr. of TSOIP category3 init values Start addr. of TSOIP category3 values Start addr. of TSOIP category81 init values Start addr. of TSOIP category81 values Start addr. of TSOIP category84 init values Start addr. of TSOIP category84 values

1.2.3 EEPROM von Converter Modul


Das EEPROM vom Converter Modul kann ber den Addressoffset 0x10000h erreicht werden.

1.3 EEPROM Unterschied


EEPROM Unterschied zwischen AT-Mega128 und AVR32. Im MEGA128 war ein EEPROM integriert. Im Gegensatz dazu besitzt der AVR32 kein internes EEPROM. Seine Initialdaten stehen im EEPROM Adresse 0xA0. Es werden nur Unterschiede zu vorher genutzten EEPROM Bereichen dargestellt. Neu hinzugekommene Bereiche werden hier nicht aufgefhrt. Siehe dazu die Tabelle 1.2.2. Unterschied zwischen dem Inhalt des AT-Mega128 EEPROM und AVR32 : ADR 0x0000 0x0007 0x0009 0x000D VORHER nicht genutzt MPT/PTP auswahl ReadID RS485 Terminierung NACHHER Bandmode MPT Watchdog First start GDC

0x000E 0x0013 0x0014 0x0017 0x001B 0x0027 0x0028 0x0040 0x0044 0x1000

nicht genutzt nicht genutzt OCXO Limit PLLGain nicht genutzt nicht genutzt nicht genutzt Freq. Min Freq. Max nicht genutzt

GDC RS232 Parameter valid nicht genutzt BIASTEE module available information GDC GDC FPGA ID nicht genutzt nicht genutzt GDC

Unterschied zwischen dem Inhalt des 2-ten EEPROMs (0x8000) ADR 0x8007 0x8008 0x8050 0x8090 0x8010 0x8030 VORHER In einzelband Gert nicht genutzt In einzelband Gert (V od. L) Level offset CW In einzelband Gert Freq. Compensation tab In einzelband Gert (V od. L) Nicht genutzt In einzelband Gert Temp. Compensation tab In einzelband Gert (V od. L) Nicht genutzt NACHHER lvloffs_cw_L lvloffs_cw_V freqcomp_L freqcomp _V freqcomp_L freqcomp _V

2 MPT Befehle
2.1 Liste aller 1- und 2-Byte Befehle
OP
M U AA AB

Function
Disable output Enable output Send received FRAME 1:1 over SPI Send received advanced FRAME 1:1 over SPI

Parameters
None None GDC spezific Size Frames 0 .. 16 GDC specific M U AA0180000000

Example

Public
YES YES

Write a 0 into FIR RAM address 0

YES

AB2|01800000000180000001 Size 2 Frames Frame 1 0180000000 Frame 2 0180000001 BA123 n.a. BC0123456789AB YES BD123 BEABCDEF1234567890 BI0123456789ABCD BM0 BM1 BM2 BM? BN BN? BR1 BR BR BR? BX DE0 DE4 DE5 EA1 EAx EA? EC1 EC2 EE1 EEx EE? ID ID? Reset counter Read Errors Read packets read first histroy entry read x history entry read number of history entries Clear stored alarms Clear stored events read first stored event read x stored event read number of stored events read AVR32 software version Read index 1 from PID table Read actual index with auto incr. BISS Mode-0 BISS Mode-1 BISS Mode-E (injected ID) YES YES YES YES

BA BB BC

BISS add PID to table BurriedID

0..8191 n.a.

YES NO1

Set clear session word for 12 hex digits BISS Mode-1 BISS delete PID from table Set encrypted session word for BISS Mode-E Set injected identifier for BISS Mode-E Set BISS mode 0..8191 16 hex digits 14 hex digits 02, ?

BD BE BI BM

YES

BN BR BT BX DE

Return amount of valuess None, ? tored in PID table Read PID table index Read TID Restor PID table Frame error counter Decimal value, None None, ? None 0,4,5

YES YES YES YES YES

EA

Alarm history query

Number, ?

YES

EC EE

Clear stored alarms/events Event history query

1,2 Number, ?

YES

YES

ID JY LO MC ME

Query Software version Set Authorization Start bootloader Configuration modulator GDC parameter to be set

None, ? 16 Hex values Decimal value Bit map (Figure 1), ? Bit map (Figure 2), None, ?

YES YES YES YES

ZY0123456789ABCDEF LO871118275 MC128 MC? ME0 ME1 ME2 ME3 ME? Test mode on Original FIR Manipulated FIR Parameter Original Constellation Parameter Manipulated Constellation Parameter

YES

MF

TX frequency

Frequency (MHz or Hz), ?

MF120.500001 MF120500001 MF980.500000 MF MF? MG0 MG1 MG MG? MI17 MI MI?

Frequency in MHz (VHF) Frequency in Hz (VHF) Freq. in MHz (L-Band)

YES

MG

DVB S2 VCM/BBFRAME mode

0, 1, None, ?

BBFrame input mode off BBFrame input mode on

YES

MI

PMT PID

168190, None, ?

PMT PID = 17 same value as for MV command is not allowed !

YES

MK

Null packet deletion

0, 1, None, ?

MK0 MK1 MK MK?

Null packet deletion off Null packet deletion on

YES

ML

TX level

Level (1/10 dBm), None, ?

ML-123 -12.3 dBm ML+035 +3.5 dBm ML ML? MM06 MM MM? MN0 MN1 MN MN? MO0 MO1 MO MO? MP0 MP261000 MP MP? MQ4 MQ-9 MQ MQ? MR0 MR1 MR2 MR MR? MS12345678 MS MS? MT0 MT1 MT MT? DVB-S QPSK 1/2

YES

MM

Modulation type

Value (see Figure 33),None, ?

YES Roll off sig mode off (5 % = 5%) Roll off sig mode on (5 % = 20 %)

MN

Set/Clear Roll off signal mode

0, 1, None, ?

YES

MO

Output TX On/Off

0, 1, None, ?

TX off TX on

YES

MP

PL scrambling code

0262141, None, ?

Broadcast mode PL scrambling PL scrambling n=261000

YES

MQ

Slope compensation

Slope (-9+9), None, ?

Set slope to +4 Set slope to -9

YES

MR

Roll-Off

0, 1, 2 , None, ?

35% 25% 20%

YES

MS

Symbol rate

symbol rate (sps), None, ? 0, 1, None, ?

12.345678 Msps YES Still picture output off Still picture output on

MT

Still picture

YES

MV

VID PID

168190, None, ?

MV8190 VID PID = 8190 same value as for MI command is not allowed ! MV MV? Enable CW signal output

YES

MY

Testmode

Bit map (See Figure MY1 4), None, ? MY MY? Bit map (decimal value, see Figure 5), None, ? MZ1 industry./comp. MZ MZ?

YES Pilots on, normal FEC length, short BCH code YES

MZ

Configuration modulator DVB S2

QA

Read analogue measurement values

08 QA0 from sources QA1 11, 12 from sources QA2 QA3 QA4 QA5 QA6 QA7 QA8 QA11 QA12 QA13 QA14

RMS of internal modulator signal (dBm) Tune voltage of the fine step synthesizer (V) Tune voltage of the main synthesizer (V) 3.3 V PSU (V) 6.5 V PSU (V) 1.5 V PSU (V) 1.0 V PSU (V) 2.5 V PSU (V) DVB temperature (C) Modulator temperature (C) Input FIFO fill level (%) BIASTEE output current [mA] BIASTEE output voltage [V] Set converter MPT address to A

YES

QC

Converter module MPT address ASI status Temperature Read device key Status query (bit 0 - bit 31) (Figure 7) Status query (bit 0 - bit 31) (Figure 7) Self test query (bit 0 8) (Figure 8) Start JTAG interpreter ID string converter query ID string modulator AVR32 query Modulator FPGA version number Set EEPROM address Set BISS mode

AZ, None, ?

QCA QC QC? QI QI? QT1 QK SA SA?

YES Returns asi status Get modulator temperature returns bit mask as hexadecimal value returns bit mask as hexadecimal value returns bit mask as hexadecimal value Starts the JTAG USART MPT interpreter

QI QT QK SA

Bit table(Figure 6), None, ? 1 None None, ?

YES YES YES YES

SB

None, ?

SB SB?

YES

ST

None, ?

ST ST?

YES YES YES YES YES

SU VC VW VX WA WB

34559427 None, ? None, ? None, ? 0 4294967295 0, 1, None, ?

SU34559427 VC VC? VW VW? VX VX? WA123 WB0 WB WB? WD0 WD1 WD2 WD3 WD?

Set eeprom address 123 Disable BISS mode Query BISS mode BIASTEE module not available 24V/10MHz BIASTEE module available 48V/10MHz BIASTEE module available 10MHz BIASTEE module available L-Band VHF-Band V+L-Band

YES YES

WD

Biastee module selection

Decimal, None, ?

YES

WE

Band selection

Decimal, None, ?

WC0 WC 1 WC 2 WC WC? WG0|1234

YES

WG

Biastee module calibration

Select: 0 Current 1 Voltage Value: 0..65535 Select: 0..1

Set current calibration value to 1234. WG1 WK1 WK Temperature comp. disabled

NO*

Get overall configuration WK EN/DIS compensation

NO* NO

Bit map (decimal value Figure 9),

None, ? WR Read EEPROM None, decimal, A

WK? WR Read value from actual address with address auto inc. WR2 Read 2 byte from act. address with address auto inc. WR4 Read 4 byte from act. address with address auto inc. WR8 Read 8 byte from act. address with address auto inc. WRA123 Read byte from address 123 WV0V123 WV0? WV1? WV2? Set DAC value 123 to GlDACA Read DAC value from GlDACA Read DAC value from GlDACB Read DAC value from FreqDAC

NO

WV

DAC value

Decimal, ?

NO

WW YI

Write EEPROM Error-Warning-Mask

Decimal, A Bit map (decimal value Figure 10), None, ? Decimal, None, ?

WW45? Write value 45 to act. Address WW45A123? Write value 45 to address 123 YI1 YI YI? YS0 YS1 YS2 YS YS? ZAA ZA ZA? ZC0 ZC1 ZC ZC? ZD20040503 ZD ZD? Enable DVB not in sync as alarm

NO

YES Set default picture Set default picture Set user test picture

YS

Still picture

YES

ZA

Modulator module MPT address System configuration

AZ, None, ?

Set modulator MPT address to A YES Bit mask: 00000000 Bit mask: 00000001

ZC

Bit map (decimal value Figure 11), None, ? Decimal value, None, ?

YES

ZD

Date

2004-05-03 returns date in format: yyyymmdd

YES

ZF ZG

Factory reset External mute input

None 0, 1, None, ?

ZF ZG0 ZG1 ZG ZG? ZH0 ZH1 ZH ZH? ZJ0 ZJ1 ZJ? ZL1 ZL5 ZM1234.1234 ZM? Mute input disabled Mute input enabled

YES

YES

ZH

Enable/disable 10 MHz output (only HDM2/SDM2-L)

0, 1, None, ?

Disable 10 MHz Enable 10 MHz

YES

ZJ

Alarm relay enable

0, 1, None, ?

Alarm Relay disabled Alarm Relay enabled Load State 1 Load State 5 Operation has to be allowed with command ZQ before Autosave Off Autosave On

YES

ZL ZM

Load device state Write device serial number Autosave

State (0..5) 0 .. 32 Byte, ?

YES

YES

ZO

0, 1, None, ?

ZO0 ZO1 ZO ZO?

YES

ZQ

Service mode

Decimal

ZQ10185 Disable Maintenance Set Service Flag ZQ10186 Enable Maintenance Set Service Flag ZQ12450 Set LOSUPPRESSION value to 0xFF ZQ12452 Set LOSUPPRESSION value to

YES

0x02 ZQ13232 Disable I2C master functionality ZQ51338 Reset manipulated GDC tables to initial values ZQ39362134 Unlock device to allow writing Serial Nr. ZQ911000 Set FPGA Send NULL bit to 0 ZQ911001 Set FPGA Send NULL bit to 1 ZQ100001Get used stack value [Byte] ZR Configuration serial interface Bit map (decimal value Figure 12), None, ? State (0005), None, ? ZR101 ZR ZR? ZS2 ZS5 ZS ZS? ZT0834 ZT171530 ZT ZT? ZU Enable/disable 24 V DC output (only HDM2/SDM2-L) 0, 1, None ? ZU0 ZU1 ZU ZU? Disable DC Enable DC Save State 2 Save State 5 Number of available states 08:34 17:15:30 returns time in format: hhmmss Bit map: 01100101: 19200 Baud, N81

YES

ZS

Save device state

YES

ZT

Time

Decimal value, None, ?

YES

YES

ZY ZZ

Set Authorization Get Authorization

16 Hex values None, ?

ZY0123456789ABCDEF ZZ ZZ?

Set authorization code 0123456789ABCDEF

YES YES

NO1 : Only allowed if service flag is set

2.2 Liste aller TSoIP Befehle


OP MJA Function Write to TSoIP module (All categories possible) Channel Category Setting R/W length Data byte 7 Data byte 6 Data byte 5 Data byte 4 Data byte 3 Data byte 2 Data byte 1 Data byte 0 Channel Category Setting R/W length Channel Mode Application Memory Get overall configuration MJD Read TSoIP device properties (Category 1&3) Channel Channel Index Parameters 0..255 0..255 0..255 0..1 (0=Write, 1=Read) 0..8 0..255 0..255 0..255 0..255 0..255 0..255 0..255 0..255 0..255 0..255 0..255 0..1 (0=Write, 1=Read) 0..8 (Num. of Bytes to be read) 1..6 0 (ASI/SPI to TSoIP) 1 (TSoIP to ASI/SPI) 0 (Failsafe application) 1 (Normal operation) 0 (Store to Flash) 1 (Store to Ram) 1..6 1..6 0 (FPGA version) 1 (HW version) 2 (FW version) 3 (Serial number) 4 (Type) 5 (Device MAC address) 6 (Device Initialized) 1..6 xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx 0 (Disabled) 1 (Enabled) Examples (only OPCODE and parameter) MJA0|129|12|0|4|239|255|255|213 Set receive Multicast address from TSoIP module on channel index 0 to 239.255.255.213 For further description refer to the DekTec DTM-3200 manual. Hint: The number of data bytes is dependent on the parameter length. The highest byte has to be send first. NO* Public

Read from TSoIP module (All categories possible)

MJA0|129|12|1|4 Read multicast IP address from channel 0 TSoIP module. MJC1|1|1|1 Set channel 1 mode configuration to TSoIP to ASI/SPI and normal operation. Store DTM2000 data to its Ram.

MJC

Set overall Configuration. (Category 2)

NO*

MJC1 MJD0|1 Hint: If Index 6 is set to 1, the TSoIP device is initialized and all commands are working. After a reset occurred this parameter indicates if the TSoIP module is online again.

NO*

YES

MJI

Set device Network settings (Category 3)

Channel IP address Subnet mask Gateway DHCP

MJI2|192.168.123.76|255.255.255.0|0.0. 0.0|239.255.255.213|0 Set IP configuration from channel 2. IP address to 192.168.123.76, Subnet mask to 255.255.255.0, Gateway to 0.0.0.0and disable DHCP. Hint: If DHCP setting changes status, the TSoIP device.has to be reset.

YES

Get device Network settings MJM Set multicast address

Channel Channel Multicast IP

1..6 1..6 xxx.xxx.xxx.xxx

MJI2 MJM1|225.1.2.3 Set multicast IP address from channel1 to 225.1.2.3

YES

YES

Get multicast IP address MJR Reboot device

Channel Channel

1..6 1..6

MJM1 MJR1 Reboot TSoIP device connected to channel 1.

YES

YES

MJS

Get IP Receive and ASI/SPI output RO

channel

1..6

MJS3|7

YES

settings Index (Category 0x81 & 0x84)

0 (FEC delay) 1 (FEC columns) 2 (FEC rows) 3 (IP jitter tolerance) (correlates with IP-to-output delay) 4 (IP lost after FEC) 5 (IP lost before FEC) 6 (TP per IP) 7 (Status) 8 (Protocol) 9 (Index) 10 (Output type) 11 (Packet size) 12 (Bitrate) 13 (PCR present) 14 (Rate-change counter) 15 (Jitter error counter) 16 (Lock error counter) 17 (Delay factor) 18 (Physical port) 19 (TS rate) 1..6 0 (Addressing) 1 (Enable) 2 (FEC enable) 3 (UDP port) 4 (IP-to-output delay) 5 (Rate-estimation mode) 6 (ASI packet size) 0..4294967295 1..6 0..6

Get Channel status from channel 3. For return information refer to figure 13.

MJT

Set IP Receive and Channel ASI/SPI output settings Index (Category 0x81 & 0x84)

MJT1|0|0 Set Addressing from channel 1 to Unicast. YES (Refer to figure 14)

value Get IP Receive settings Channel Index

MJT1|3

YES

*Only available if Service mode is active.

2.3 Liste aller MTS Befehle


OP Function Parameters Global parameter MHA Write to / Read from Register Channel Register High byte Low byte Channel Register Input pair 0..255 0..255 0..255 0..255 0..255 0..255 0 (Enable Dual Channel 1&2) 1 (Enable Dual Channel 3&4) 2 (Enable Dual Channel 5&6) 0 (Multi Transport stream mode) 1 (Single TS mode) MHA1|3|23|111 Set register 3 from channel 1 to 5999. NO* MHA1|3 Examples (only OPCODE and parameter) Public

List register entry from Channel MHD Set modulator dual channel mode (Only valid if Single TS mode is set)

MHD0|1 Enable Dual channel 1 to single TS mode MHD MHD?

Modulator mode No parameter, ? Index

YES

Get modulator Dual channel mode MHE List parameters of external extension module implementation status

0 (Number of ext. BB channels) MHE0 1 (Number of ext. ASI channels) 2 (Front module ID code) 3 (Number of ASI channels) 4 (Number of STD channels) 5 (Number of SPI channels) 6 (MTS implementation) 7 (Build number) 8 (BISS implementation) 9 (Fir128 Implementation) 10 (Pre Distortion Implementation ) 0 (Single input stream) 1 (Round-robin polling) 2 (Round-robin CDR) 3 (Round-robin CDR, all frames) MHK2 Hint: If set to 0, SIS is set automatically to 1 within FPGA! It is not signalized by command MHI because its register is not updated by FPGA. MHK MHK? 1 (MTS RESET) 0 (Disable single stream) 1 (Enable single stream ch1) 2 (Enable single stream ch2) 3 (Enable single stream ch3) 4 (Enable single stream ch4) 5 (Enable single stream ch5) 6 (Enable single stream ch6) MHR1 MHS1 Enable single stream over cannel 1. Hint: All other channels are disabled.

YES

MHK

Set modulator merge policy

Policy

YES

Get modulator merge policy MHR MHS Reset Parameters Set modulator to single stream over one input mode. (Only valid if Modulator mode is set to Multi Transport Stream)

No Parameter, ? Index Status

YES

YES

Get modulator single stream mode information MHB Set Baseband general settings

No Parameter, ?

MHS MHS? Channel specific parameter

channel mode

1..6 0 (VCM/ACM) 1 (CCM) tsgs 0..3 (Refer to Figure 15) generic 0..1 (Refer to Figure 15) channel activation 0 (Disable channel) 1 (Enable channel) Test picture 0 (Not allowed) 1 (Allowed)

MHB1|0|3|1|1|1 Set interface 1 channel to ACM mode, switch tsgs to transport stream, enable tsgs format and settings, activate channel, enable test picture. Hint: Setting tsgs is only valid if gsbbframed is set to 0. Testpicture will be only shown if tsgs is

YES

set to 3, gsbbframed is set to 0 and the global TP is activated by cmd MT1 Get Baseband general settings MHG Set Baseband format settings channel channel issylong issyi Null packet deletion padding 1..6 1..6 0..1 (Refer to Figure 16) 0..1 (Refer to Figure 16) 0 (Disabled) 1 (Enabled) 0 (Disabled) 1 (Enabled) 1..6 1..6 0..32767 0..19370666667 [ns] 0..15 1..6 1..6 0..255 0 (If generic =1 isi value overrides isi value of generic stream input data) 1 (If generic =1 isi value of generic stream input data remains active) MHB1 MHG1|1|1|0|1 Insert issyi-field into input stream from channel 1and set the issyi-filed to 3 bytes, Disable Null packet deletion, Enable padding. Hint: Issylong setting is only valid if issyi is set enabled. MHG1 MHH1|16357|123356447|0 Hint: The effective priority can be read out by command MHP8 MHH1 MHI1|0|1 Set ISI channel to 1 from input channel 0 in TS mode. In BB mode ISI is taken from BB. YES Hint : In generic mode only active if genericauto is set to 0. In TS mode always active independent from genericauto value. MHI1 1..6 0 (bits) 1 (Kbits) 2 (Mbits) 0..1023 0 (off) 1 (on) 0 (bits) 1 (Kbits) 2 (Mbits) 0..1023 MHL1|1|256|1|1|64

YES

Get Baseband format settings MHH Set Merger Fifo values

channel channel mergerfullth peak period priority channel channel isi channel idx genericauto

YES

Get Merger Buffer values MHI Set ISI information

Get ISI information MHL Set receive Buffer control settings

channel channel buffer size unit

1..6

buffer size value bufer size/status insetion buffer status unit

YES

bufer status value Get Buffer settings MHM channel 1..6 Set channel specific channel modulator configuration modulation FEC frame Pilots BBMuxInput UPL List channel specific channel modulator configuration MHN Set input settings channel fault mode

MHL1 MHM1|44|0|1|1|0 Set channel 1 modulator configuration to S2-32APSK 9/10, normal FEC frame, enable Pilots , BBMux on, upl to 0 YES Hint: If Pilots value is 2, the pilots global setting is taken. Setting UPL has actually no effect. MHM1 MHN1|0 Set from channel 0 fault detection on electrical problems. YES

1..6 17..44 (Refer to Figure 17) 0 (Normal) 1 (Short) 0 (Disabled) 1 (Enabled) 0..1 no reaction 1..6 1..6 0..2 (Refer to Figure 18)

Get input settings MHO Set Del Null Packet Maximum Value Get Dnp Max Value

channel Channel Dnp max value channel

1..6 1..6 0 255 1..6

MHN1 MHO1|255 Default Dnp max value is 255 MHO1 YES

MHT

Set input fault time factor

channel Time factor

1...6 1..65535

MHT1|1234 Set channel 0 input fault time to 1234*0.1ms=1.234s MHT1 MHX1|73 Set channel 0 packet length to 188, syncbytegs to 0x47, expect positive polarity on asi input, disable equalization, Select TSoIP interface as input, disable redundancy mode, set ASI select fixed on ASI-1, Enable ASI-Auto selection YES Hint: syncbytegs value is only valid if generic is set to 1. ASI selection is only valid if TSoIP bit is set to 0. For further information refer to Figure 21. YES

fault time = time factor * 0.1ms


Get input fault time factor MHX Set signal parameter values channel channel Bitmap 1..6 1..6 0..255

Get signal parameter values

channel

1..6

MHX1

Bit 7 6 5 4 3 2 1 0
(3) (2) (1)

Description Test Mode SPI Synchronization ASI Input TX Clock sync. Frame Type Data Input Spectrum Inversion ASI Auto

1 On PSYNC B ext 204 SPI On On

0 Off Sync Byte A int 188 ASI Off Off

Figure 1: Modulator Configuration Parameters for Command MC

Bit 1 0

Description Constellation parameter FIR parameter

1 USER USER

0 INITIAL INITIAL

Figure 2: Activated group delay compensation parameter

Parameter 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16

Modulation Type S-BPSK 1/2 S-BPSK 2/3 S-BPSK 3/4 S-BPSK 5/6 S-BPSK 6/7 S-BPSK 7/8 S-QPSK 1/2 S-QPSK 2/3 S-QPSK 3/4 S-QPSK 5/6 S-QPSK 6/7 S-QPSK 7/8 S-8PSK 2/3 S-8PSK 5/6 S-8PSK 8/9 S-16QAM 3/4 S-16QAM 7/8 DVB-S

Parameter 17 18 19 20 21 22 23 24 25 26 27 * 28 29 30 31 32 33 * 34 35 36 37 38 39 * 40 41 42 43 44 *

Modulation Type S2-QPSK 1/4 S2-QPSK 1/3 S2-QPSK 2/5 S2-QPSK 1/2 S2-QPSK 3/5 S2-QPSK 2/3 S2-QPSK 3/4 S2-QPSK 4/5 S2-QPSK 5/6 S2-QPSK 8/9 S2-QPSK 9/10 S2-8PSK 3/5 S2-8PSK 2/3 S2-8PSK 3/4 S2-8PSK 5/6 S2-8PSK 8/9 S2-8PSK 9/10 S2-16APSK 2/3 S2-16APSK 3/4 S2-16APSK 4/5 S2-16APSK 5/6 S2-16APSK 8/9 S2-16APSK 9/10 S2-32APSK 3/4 S2-32APSK 4/5 S2-32APSK 5/6 S2-32APSK 8/9 S2-32APSK 9/10 DVB-S2

* not allowed if FEC frame length is set to short (see command MZ) Figure 3: Modulation Type Parameters for Command MM

Bit 2 1 0

Description Constellation SSB signal CW signal

1 ON ON ON

0 OFF OFF OFF

Figure 4: Test mode parameter

Bit 7 6 5 4 3 2 1 0

Description not used not used not used not used not used Short BCH code FEC frame length Pilots

1 DVB original Short * On

0 Industry compatible Normal Off

* not allowed if the selected modulation is of the type DVB-S2 and if the selected FEC rate is 9/10. Figure 5: Modulator DVB-S2 Configuration Parameters for Command MZ

Bit 1 0

Description ASI B ASI A

1 No signal detected No signal detected

0 Signal detected Signal detected

Figure 6: ASI status bits

Bit 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 - (not used) - (not used)

Status

Bit 15 14 13 12 11 10 9 8 7
2)

Status OCXO Oven cold warning External mute active TX Off 108 MHz clock unlock alarm DVB communication alarm Conv communication alarm Reference Alarm Summary alarm Clock PLL lock warning Local oscillator alarm Clock oscillator alarm FIFO full
1)

BIASTEE DC voltage loss BIASTEE short circuit - (not used) - (not used) - (not used) - (not used) Test mode active BISS code activation delayed Converter PLO alarm Invalid configuration PCR Memory full warning ASI B signal low warning DVB input not in sync
1) 2) 2)

6 5 4 3 2 1 0

24 V DC shorted warning

Shutdown by security device Clock PLL overload alarm Interpolator alarm RAM error alarm

Figure 7: Bit map for hexadecimal displayed status value

Bit 7 4 3 2 1 0

Description I2C cable state I2C communication with EEPROM I2C communication with temperature sensor I2C communication with RTC I2C communication to ACTEL I2C communication to FPGA

1 Failed Failed Failed Failed Failed Failed

0 Ok Ok Ok Ok Ok Ok

Figure 8:Self test status bits

Bit 4 3 2 1 0

Description DB/DB comp. table Level gain comp. table Level offset Frequency comp. table Temperature comp. table

1 Off Off Off Off Off

0 On On On On On

Figure 9: Compensation table active bits

Bit 1 0

Description Fifo full DVB not in Sync

1 Alarm Alarm

0 Warning Warning

Figure 10: Error/Warning mask

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

reserved

reserved

reserved

reserved

reserved

Interface Send Delay

Interface Send Delay: These bits sets the transmission delay of the serial interfaces. The answer on a received command can be delayed. This is helpful for two wire bus systems, where without additional delay collisions between a still active master device and an already active slave device may occur. The basic delay depends on the baud rate and is approx. 3 ms for 19200 baud. Possible additional delays are:

Bit 1 0 0 1 1

Bit 0 0 1 0 1

Delay 0 ms 20 ms 40 ms 80 ms

Figure 11: Configuration Bitmap for command ZC

Bit 7

Bit 6 Baud Rate

Bit 5

Bit 4 (Delay)

Bit 3

Bit 2 Mode

Bit 1

Bit 0

Baudrate:

Bit 7 0 0 0 0 1

Bit 6 0 0 1 1 0

Bit 5 0 1 0 1 0

Baudrate 4800 4800 9600 19200 38400

Mode:

Bit 3 0 0 0 0 0 0 0 0

Bit 2 0 0 0 0 1 1 1 1

Bit 1 0 0 1 1 0 0 1 1

Bit 0 0 1 0 1 0 1 0 1

Parity EVEN ODD NONE EVEN ODD NONE EVEN ODD NONE

Data bits 7 7 7 7 7 8 8 8 8

Stop bits 1 1 2 2 2 1 1 1 2

1 Parameters 0 for command 0 0 ZR Figure 12: Serial Interface

Delay Bit 4

0 = no delay 1 = approx. 7 ms delay after each character

Index 0 1 2 3 4 5 6

Name FEC delay

Description

FEC delay in milliseconds

FEC columns
0..20; FEC columns

FEC rows IP jitter tolerance IP lost after FEC


Number of packets lost after FEC reconstruction 0..20; #FEC rows 0..120ms; The time (in ms) that the DTM-3200 waits to receive 'late' IP packets

IP lost before FEC


Number of packets lost before FEC reconstruction

TP per IP
Number of transport packets per IP packet Current operational status: 0 = Channel is enabled; no errors detected 1 = Channel has been disabled 2 = Channel is enabled, but there is a problem with the processing of the received IP stream Protocol used by the incoming IP stream: 0 = UDP 1 = RTP Channel index; always 1 for the DTM-3200 (because it supports a single channel only) Identifies the type of output interface: 1 = ASI output 2 = SPI output 0 = 188 bytes 1 = 204 bytes

7 8 9 10 11 12 13

Status Protocol Index Output type Packet size Bitrate

14

15

Estimated bitrate (in bps@188) of the incoming TS 0 = No PCRs in incoming TS PCR present 1 = PCRs found in incoming TS Hint: Actually not working Counter that keeps the number of bitrate changes detected on Rate-change this channel. During normal operation this counter should remain counter constant Hint: Actually not working Counter that keeps the number of IP jitter errors for this channel. A jitter error occurs when an incoming IP packet has a jitter that exceeds the Jitter Tolerance. During normal operation this Jitter error counter counter should remain constant Counter that keeps the number of channel restarts. A channel is restarted only under adverse circumstances, like large jitter of IP packets in combination with packet loss. A channel restart Lock error counter causes a signal interruption for this channel of about 1 second. During normal operation this counter should remain constant Delay factor The channel's delay factor in us. Delay factor is a measure of the maximum jitter on the IP packets received for this channel Physical port Physical port number of ASI/SPI output; always 1 for the DTM3200

16 17 18

19

TS rate
TS rate (in bps@188) of the generated ASI stream

Figure 13: Description for command MJS

Index

Name

Description 0 = Unicast 1 = Any-source multicast 0 = Disable IP-to-ASI/SPI conversion 1 = Enable IP-to-ASI/SPI conversion Hint: After startup/reboot Enable is indicated with 1 but has to be written once to 1 to really enable channel. 0 = Disable FEC decoding 1 = Enable FEC decoding 1..65535; UDP port number at which the DTM3200 listens for the incoming TS 1..9942ms; Delay (ms) from IP input to ASI/SPI output in milliseconds (Correlates with IP-jitter tolerance)

Addressing

Enable

FEC enable

UDP Port

IP-to-output delay

0 = Bit rate is estimated using PCRs if possible, otherwise the bit rate is estimated without PCRs (recommended setting) 1 = Bitrate estimation is disabled; Packets are transmitted immediately after being received Rate-estimation 2 = Bitrate is estimated without the use mode of PCRs 0 = Generate IP packets with 188-byte transport packets 1 = Generate IP packets with 204-byte transport packets 2 = Use size of received packets

ASI packet size

Figure 14: Description for command MJT

0 n.a. 1 n.a. tsgs 2 n.a. 3 MPEG transport stream

0 tsgs format and setting used base band Base band interface format used. 1 Settings overwritten by VCM/ACM control word.

Figure 15: Command MHB further description

issylong

0 1 0

ISSY-field 2 bytes (Used if issyi is set to 1) ISSY-field 3 bytes (Used if issyi is set to 1) Input stream synchronization not active. No ISSY-field inserted. Input stream synchronization active. ISSY-field inserted.

issiy 1

Figure 16: Command MHG further description

Parameter 17 18 19 20 21 22 23 24 25 26 27 * 28 29 30 31 32 33 * 34 35 36 37 38 39 * 40 41 42 43 44 *

Modulation Type S2-QPSK 1/4 S2-QPSK 1/3 S2-QPSK 2/5 S2-QPSK 1/2 S2-QPSK 3/5 S2-QPSK 2/3 S2-QPSK 3/4 S2-QPSK 4/5 S2-QPSK 5/6 S2-QPSK 8/9 S2-QPSK 9/10 S2-8PSK 3/5 S2-8PSK 2/3 S2-8PSK 3/4 S2-8PSK 5/6 S2-8PSK 8/9 S2-8PSK 9/10 S2-16APSK 2/3 S2-16APSK 3/4 S2-16APSK 4/5 S2-16APSK 5/6 S2-16APSK 8/9 S2-16APSK 9/10 S2-32APSK 3/4 S2-32APSK 4/5 S2-32APSK 5/6 S2-32APSK 8/9 S2-32APSK 9/10 DVB-S2

* not allowed if FEC frame length is set to short Figure 17: Modulation Type Parameters for Command MHM

fault mode

"Not in sync" Asserts only if input data heavily 0 corrupted or physicaly disconnected, effective immediately regardless input fault time 1 "Not in sync" Asserts only if input data are 8B10B k-charakters for more than "input fault time" "Not in sync" Asserts only if input data are null packets for more than "input fault time"

Figure 18: Command MHN further description

BIT 7 6 5 4 3 2 1 0

Description

Dualsel-Status (0-A selected, 1-B selected) Dualred-Synthconf, Dual-Red Pair (0-A, 1-B) Dualred-Synthconf, Dual-Red Pair (0-no, 1-yes)

Figure 19: Command MHP further description

BIT 8 7 6 5 4 3 2 1 0

Description Stored Merger FIFO Full Internal channel disabled Stored channel shut down Stored BISS-Input-FIFO-Full Asipolstat, 0-normal 1-inverted Stored Sync FIFO full Stored Conf Auth-Error Stored Conf Invalid Stored Input Sync-Loss

Figure 20: Command MHP further description

Bit 7 6 5 4 3 2 1 0

Description packet length syncbytegs asipolauto qextbypass TSoIP Redundancy mode Redundancy ASI Select Redundancy ASI Auto

1 204 0x47 On On On On Fixed ASI-B On

0 188 0xB8 Off Off Off Off Fixed ASI-A Off

asipolauto

0 positive polarity on ASI input expected 1 Input finds polarity of ASI input data automatically

Equalization 0 OFF 1 ON
Figure 21: Command MHX further description