You are on page 1of 39

ADE_VAS

1
System is designed and developed for Video Audio Switch (VA Switch) based on
Switching devices and Freescale MCU S12XE series and supported with peripherals
as suggested by ADE. Control signals from MCU would control the switching of Mux,
Mixer and Sync devices.

Video audio switch module can be used to route video and audio from multiple
sources to multiple destinations.

Test system module is designed to provide video, audio and control channel signals
to the Video audio switch,capture and display the switched/buffered video, audio and
control signals from the video audio switch.
System Requirement
1.Windows 7 32 bit
2.2 GB RAM
3. 500 GB HDD
4.Capture Card
Software Requirement
1.Microsoft Dot Net framework 4.0
2.AvSDK Windows driver Installer
3.FTDI driver
The Video-Audio Switch shall be interfaced with AED using RS422 interface. For
communication between VA switch and AED, Packet oriented communication protocol will
be used. In this configuration input connection is fixed, only output connection is fixed;
only output connection will be changed.

The communication interface requirement will be as follows:

Data Packet Rate: 12.5 Hz

Channel attribute: Start bit: 1, Data bit: 8, Stop bit: 1, Parity bit: Nil

Baud Rate: 9600


ADE_VAS Graphical User Interface would provide video, audio and control channel
signals to the video and audio switch, capture and display the switched/buffered video,
audio and control signals from the video, audio switch. Based on the user input from an
application, Firmware running on test system can send the configuration information
which specifies selection of the cross bar switch, multipliers on video/audio switch.
ADE_VAS GUI functionality is divided into two major parts:

1. Capture
2. Configuration
 MC9S12XEP100MAG devices is used to control the peripherals of the video audio switch, below
are the features of the MCU
 MC9S12XEP100MAG is a 16-Bit device.
 Memory Options-1M byte Flash, 4K byte emulated EEPROM and 64K Byte RAM.
 Two 16-channel, 12-bit Analog-to-Digital Converters.
 Three Serial Peripheral Interface Modules (SPI).
 Eight Serial Communication Interfaces (SCI).
 Two Inter-IC bus (IIC) Modules.
 Low-power wake-up timer (API).etc
 Video switch to switch 4 composite video inputs to 8 video outputs in one to one or one to many
configuration and Relay for video bypass in power failure condition.
 Audio switch-1 switches 2 inputs to 2 outputs in one to one or one to many configuration.
 Audio switch-2 switches 4 inputs to 3 outputs in one to one or one to many configuration, 3
outputs are mixed using the mixer circuit and dual mixed output will be given as output.
 HD-SDI video will buffer 1 HD-SDI video input to 4 HD-SDI video output.
 Dual RS422 channels are provided for communication.
 ADV3229 device can be configured from the MCU over
SPI interface.
 ADV3229 device can switch 4 inputs to 4 outputs in one
to one or one to many configuration
 Dual ADV3229 devices are used for redundancy
 Relay is used to bypass the 1st video input in case of
power failure
 ADG16386 is audio cross point switch, device is
controlled from the MCU over GPIO line.
 ADG16386 device can switch 2 audio inputs to 2
audio outputs in one to one or one to many
configuration
 Audio outputs are buffered using the OPAM.
 MAX4550 is audio cross point switch, device
is controlled from the MCU over I2C interface.
 MAX4550 device can switch 4 audio inputs to3
audio outputs in one to one or one to many
configuration
 Audio outputs are connected to Mixer circuit,
mixed output is given to dual OPAM for
buffering.
 One HD-SDI video is buffered to 4 HD-SDI videos.
 LMH0384SQ device is used for cable equalization.
 LMH0346 device is used for the Re-clocking of the HD-SDI signal.
 LMH0307 device is cable driver, used for driving the 4 HD-SDI videos
 MCU will control all the devices.
 Dual RS422 isolated transceivers are interfaced to MCU for communication with the test system
 1:4 TTL buffer is used for the TTL signal buffering, two output of the TTL buffer is given to the
RS422 buffer.
 Dual PTT signals are given to the Relay for the switching, Relay is controlled from the MCU over
GPIO lines.
Appendix:page2
 As soon as Microcontroller power on ,startup code get start executing and it will call the Main function.
 The main Function will initialized the local variable and call the IsSimplePrmCRCCheckSumOK()
functions.
 This functions will start the calculations of Firmware CRC by calling _Checksum_CheckAreaCRC32()
functions is CRC32 checksum of an aera and store the value in firmware_crc .This is global variable.
...

 After getting Firmware_crc value ,We will do mcu configuration in which we will Initialized all the
PORT and PLL(Clock) settings.
 we will Initialized all the peripheral like IIC ,SPI, UART and interrupt will be enabled and timer
function.
...

 We are receiving data through UART RS422 and storing in the receiving buffer and after validating
the data, we copying this data to main buffer.
 After every 160ms we look for new data is present or not.If it is there then it wil update the switches
accordingly .All audio ,video switches are updated and verified.To updates switches we will use
different protocol like IIC,SPI.Video conifig is communication based on SPI and audio uplink is
GPIO control and downlink is done with IIC protcol.
...

ADV3229 Cross Bar Switch :


 ADV3229 device can be configured from the MCU over SPI interface.
 ADV3229 device can switch 4 inputs to 4 outputs in one to one or one to many configuration.
 SPI Configuration :
* Mode : CPOL 0,CPHA 0
* Baud rate : 3.125MHz
* Data lenth : 8 Bit .
...
Audio cross point switch-1 :
 ADG16386 audio cross point switch, device is controlled from the MCU over GPIO line.
 ADG16386 device can switch 2 audio inputs to 2 audio outputs in one to one or one to
many configuration
...
Audio cross point switch-2 and Mixer :
 MAX4550 is audio cross point switch, device is controlled from the MCU over I2C interface.
 MAX4550 device can switch 4 audio inputs to3 audio outputs in one to one or one to many
configuration.
...
...
Mixer circuit :
 Audio outputs are connected to Mixer circuit, mixed output is given to dual OPAM for buffering.
 Mixer ciruit is connected MCU with SPI Interface.
MCU will control all the devices .
SDI switch is control using SPI protocol.
SDI Cable driver controller drive by IIC protocol.
...

 Every 160ms we will send the status of switches to the User/Test sytem over UART RS422.
 It will Send the all switch status and software version ,release date ,Cable Driver Output
Termination Fault 1, Cable Driver Output Termination Fault 2, Carrier Detect1. etc.
 For more details, refer ADE_VAS_SDD (V0.5).
Packet length of 16 Bytes

16 bytes

 FRAME HEADER : It is fixed footer having value (ox55).


 Fixed Footer : Its value is (0xBB).
 Video Control matrix 1 & 2 are used to configure Video Cross bar switch.
 Audio downlink and uplink MUX frame.
 SDI Switch Frame.
 Push to talk Frame
 Switch Status,Error status,software version and release Date Frame
 CRC error checking Frame.
Continue...

S.no Matrix-1 & 2 Video control


1 Bit1:Bit0 3-0 Output-0

2 Bit3:Bit2 3-0 Output-1

3 Bit4:Bit5 3-0 Output-2

4 Bit7:Bit6 3-0 Output-3


S.no Uplink voice chain S.no Downlink voice chain switching

1 Bit3:Bit2 3-0 Audio Mix1


1 Bit0 1-0 Output-0 I/P
2 Bit5:Bit4 3-0 Audio Mix2
2 Bit1 1-0 Output-1 I/P
3 Bit7:Bit6 3-0 Audio Mix3
I/P
S.no SDI Switching [3 I/P:2 O/P S.no Downlink voice Audio Mixer
1 Bit7:Bit 0xFF – Audio Mixer
1 Bit1:Bit0 3-0 Output-0 0 0x00 I/P 1
2 Bit7:Bit 0xFF – Audio Mixer
0 0x00 I/P 2
2 Bit3:Bit2 3-0 Output-1
3 Bit7:Bit 0xFF – Audio Mixer
0 0x00 I/P 3
S.no PTT Control
1 Bit0 1-0 PTT-1
2 Bit1 1-0 PTT-2
3 Bit2 Built_in_Test Built_in_Test
4 Bit7-
Bit3(Spare
bits)
Built In Test
0 1
Bit 0 : Inactive Active Cable Driver Output
S.no Cmd Pkt Rx Cnt
Termination Fault 1
1 Bit3:0 - Ch-1 0x0 – 0xF Rollover
Pkt Count count Bit 1: Inactive Active Cable Driver Output
required to Termination Fault 2
diagnose
the channel
Bit 2: Inactive Active Carrier Detect1
health
status Bit 3: Inactive Active Carrier Detect2
2 Bit7:4 - Ch-2 0x0 – 0xF
Pkt Count Bit 4: Inactive Active Carrier Detect3

Bit 5: Inactive Active Loss of Signal1 O/P SDI

Bit 6: Inactive Active Loss of Signal2 O/P SDI

Bit 7: Inactive Active SDI Video Switch BIT


S.no Software

1 Bit7:Bit0 Bit3:0 Bit7:4 Software


Software Software Informati
revision version on

2 Bit7:Bit0 Bit4:0 DateBit 7:5 Software


Month Release
Date
 In Configuration, First GUI will check how many serial ports are connected to PC. If one port
gets connect, It will open that port as Primary Port and starts sending packets with every 160
milliseconds time interval.
 If two ports are connected then it will open port1 as first and send a default packet, if it gets
reply as 16 bytes then check port status from MCU and open both the ports as primary &
secondary .
 Else if 16 bytes is not recieved by port1 then port1 will be close and port2 will open and send
packet.If it gets 16 bytes then check for primary & secondary and open ports according to
that.
 Else after 160 miliseconds again port configuaration will call and do same operation as
above.
 After getting Primary Port and Secondary Port,communication will start and update the
controls.(Built_in_Test,Port status, Packets count etc.) with every 160 milliseconds.
1. Start Capture (Audio/Video)
o Configuration :
· Cofigure capture card device
· Support video compressed stream to be capture
· Cofigure all output channels to UI
· Configure all video’s properties

o Capture :
· Video/Audio stream capture start

2. Stop Capture
· Stops capturing by de-initialise video channels.
3. Record
· Start recording start storing the received data on HDD (Specified Path).
4. Stop Record
· Stop recording stop storing received data.

You might also like