GL Communications Inc.
 
 
 
Home > Client Server Software

DSP Script: Double Talk Simulation for Echo Canceller Testing

Script Description:

This script emulates the far end and near end call for echo canceller testing.

Procedure:

Connect the T1/E1 cards in 2 PCs by a loopback or crossover cable. Run server on PC1 and client software in PC2.Open GUI at PC2 and enable Vf out at timeslot 1 to listen to the data.

Variation 1: Using "DSPOP" command

Script:

// Connection assumed: connect card1 and card2 from PC 'A' to card1 and card2 of PC 'B' respectively.
// this script should not be run simultaneously with GUI
//MODE:SEQUENTIAL
//
// User needs to comment the commands according to his requirement
//
//BOARD SETTINGS...
//
//INTERFACE SETTINGS
set rx interface terminate #*;
//set rx interface monitor #*;
//set rx interface bridge #*;
wait 3000;
//
//FRAME FORMAT SETTINGS FOR T1
set superframe format esf #*;
//set superframe format d4 #*;
//
//FRAME FORMAT SETTINGS FOR E1
//set signaling mode cas #*;
//set signaling mode ccs #*;
//set crc4 on#*;
//set crc4 off #*;
//
//CLOCK SETTINGS
set tx clock source internal #*;
//set tx clock source recovered #*;
//set tx clock source external #*;
//
//LOOPBACK SETTINGS
//set inward driver loopback on #*;
//set outward driver loopback on #*;
set outward driver loopback off #*;
set inward driver loopback off #*;
wait 3000;
//
//- - - - - - - - - --Verification of initialization
//CHECKING FORMAT SETTINGS FOR T1
get superframe format #*;
//
//CHECKING FORMAT SETTINGS FOR E1
//get signaling mode #*;
//
//CHECKING OTHER SETTINGS FOR THE CARDS
get tx clock source #*;
get outward driver loopback #*;
get rx line frequency #*;
get rx line level #*;
wait 3000;
//
set latency 3;
set response 9;
//set priority default;
get response;
get latency;
get priority;
set latency default;
set response default;
//
//For T1 only
dspop{op1=sum(delay(dtmf digits("12345",-10,50,50),5),delay(infile("Mu-Law Samples⁄East.pcm"),10)),op2=sum(delay(infile("Mu-Law Samples⁄vijay.pcm"),10000),atten(op1,10)),op3=filter(op2,"filter files⁄g8-m1.xfr"), tx(op3,#1:1)};
//For E1 only
dspop{op1=sum(delay(dtmf digits("12345",-10,50,50),5),delay(infile("a-Law Samples⁄b52_alaw.pcm"),10)),op2=sum(delay(infile("a-Law Samples⁄count10.pcm"),10000),atten(op1,10)),op3=filter(op2,"filter files⁄g8-m1.xfr"), tx(op3,#1:1)};
end task*;

Variation 2: Using simple DSP "Tx" command

Script:

// Connection assumed: connect card1 and card2 from PC 'A' to card1 and card2 of PC 'B' respectively.
// this script should not be run simultaneously with GUI
//MODE:SEQUENTIAL
//
// User needs to comment the commands according to his requirement
//
//BOARD SETTINGS...
//
//INTERFACE SETTINGS
set rx interface terminate #*;
//set rx interface monitor #*;
//set rx interface bridge #*;
wait 3000;
//
//FRAME FORMAT SETTINGS FOR T1
set superframe format esf #*;
//set superframe format d4 #*;
//
//FRAME FORMAT SETTINGS FOR E1
//set signaling mode cas #*;
//set signaling mode ccs #*;
//set crc4 on#*;
//set crc4 off #*;
//
//CLOCK SETTINGS
set tx clock source internal #*;
//set tx clock source recovered #*;
//set tx clock source external #*;
//
//LOOPBACK SETTINGS
//set inward driver loopback on #*;
//set outward driver loopback on #*;
set outward driver loopback off #*;
set inward driver loopback off #*;
wait 3000;
//
//- - - - - - - - - --Verification of initialization
//CHECKING FORMAT SETTINGS FOR T1
get superframe format #*;
//
//CHECKING FORMAT SETTINGS FOR E1
//get signaling mode #*;
//
//CHECKING OTHER SETTINGS FOR THE CARDS
get tx clock source #*;
get outward driver loopback #*;
get rx line frequency #*;
get rx line level #*;
wait 3000;
//
set latency 3;
set response 9;
//set priority default;
get response;
get latency;
get priority;
set latency default;
set response default;
//
//For T1 only
tx(filter(sum(delay(infile("mu-law samples⁄vijay.pcm"),15000),atten(sum(delay(dtmf digits ("12345",-10,50,50),5000),delay(infile("mu-law samples⁄east.pcm"),10000)), 10)),"filter files⁄g8-m1.xfr"), #1:1);
//For E1 only
tx(filter(sum(delay(infile("a-law samples⁄b52_alaw.pcm"),15000),atten(sum(delay(dtmf digits ("12345",-10,50,50),5000),delay(infile("a-law samples⁄count10.pcm"),10000)), 10)),"filter files⁄g8-m1.xfr"), #1:1);
end task *;

 Back to Client Server Software Page



 
 
Home Page Sitemap Global Presence Email