Programming a Digital Audio Interface (DAI) Test

Programming a Digital Audio Interface (DAI) Test

Last updated: January 16, 2009

This section is only applicable to the GGE lab application. It is included in this manual to provide an example of how to approach automating a DAI test in the W-CDMA/HSPA lab application.

Programming a Downlink DAI Test

The following example program demonstrates use of the Downlink DAI Test. See Programming a Downlink DAI Test for procedure on how to set up a Downlink DAI Test.

 
11 Testset=714
12 CLEAR SCREEN
13 CLEAR 7
14 CLEAR Testset
15 PRINT "*** Digital Audio Interface (DAI) Downlink Test Program for GSM/GPRS/EGPRS***"
16 PRINT
17 PRINT
18     !
19     !****************************************************************
21     ! TS Uploads the COD/DEC reference file to the Test set via HTTP interface,
22     ! Indicate which codec the COD/DEC reference file applies to,
23     ! Press Enter when finished.
24     !****************************************************************
25 Codec_type$="AFS"     !Set the Type of the Codec file to "Adaptive Full Rate".
26     !
27 BEEP
28     !
30 PRINT "Upload the COD/DEC reference file to the Test set,"
31 PRINT "Indicate which codec the COD/DEC reference file applies to,"
32 PRINT "Press Enter when finished."
33 PRINT
34 PRINT
35 !
36 LINPUT "Press ENTER when finished",Keyboard$
37         !
38 !
39 OUTPUT 714;"CALL:CELL:OPERating:MODE CALL"     !Set the operating mode to Active Cell.
40 OUTPUT 714;"CALL:CELL:POWer -50dBm"     !Set the Cell Power.
41 !
42 !If necessary, configure the traffic channel parameters for the call assignment.
43 !See "CALL:TCHannel".
44 !If necessary, set the Paging Identity. See "CALL:PAGing:IDENtity[:TYPE]".
50 !If necessary, set the IMSI state. See "CALL:PAGing:IMSI".
60 !If necessary, set the repeat paging state. See "CALL:PAGing:REPeat[:STATe][:SELected".
61 !
70 OUTPUT 714;"CALL:ORIGINATE"     ! Begin the BS originated call.
80 OUTPUT 714;"CALL:CONNECTED:STATE?"     ! The connect/idle query.
90 ENTER 714;Call_connected     ! Program will hang here until state
100                              ! change or protocol timer expires.
110     !************************************************************
120     ! If mobile is not set to auto-answer, answer the call.
130     !************************************************************
140 IF NOT Call_connected THEN
150 DISP "CALL NOT CONNECTED."
160 ELSE
170 OUTPUT 714;"CALL:TCHannel:CMODe:LSPeech:CHANnel ";Codec_type$
171        !Set the Logical Speech Channel to be tested.
172 OUTPUT 714;"CALL:TCHannel:DAINterface:TINTerface SDECoder"
173        ! Enable the DAI Speech Decoder.
174 !
175         !*********************************************************************
176         ! Command the Customer Test Station (TS) to apply reset pulse to DUT.
177         ! Command the Customer Test Station (TS) to start recording the
178         ! COD file output from the Mobile Station via the DAI.
179         ! Press Enter when finished.
180         !*********************************************************************
181 !
182 BEEP
183 !
184 PRINT "Command the Customer Test Station (TS) to apply reset pulse to DUT."
185 PRINT "Command the Customer Test Station (TS) to start recording the"
186 PRINT "COD file output from the Mobile Station via the DAI."
187 PRINT "Press Enter when finished."
188 PRINT
189 PRINT
190         !
191 LINPUT "Press ENTER when finished",Keyboard$
192 !
193 OUTPUT 714;"CALL:DAINterface:PLAY:STATus?"         !Query the play status
194 ENTER 714;Play_status$
195 !
196 IF NOT (Play_status$="IDLE") THEN
197         !
198   OUTPUT 714;"CALL:DAINterface:PLAY:STARt"
199 !
200   LOOP
201   OUTPUT 714;"CALL:DAINterface:PLAY:STATus?"           !Query the play status.
202   ENTER 714;Play_status$
203   EXIT IF NOT (Play_status$="PLAY")
204   END LOOP
205 !
206   PRINT "DAI Downlink Test Finished."
207 !
208 ELSE
209   PRINT "Operation rejected; Digital audio file is not available."
210 END IF
211 !
212 OUTPUT 714;"CALL:TCHannel:DAINterface:TINTerface OFF"
213        !Set the DAI Test Interface to Off.
214 OUTPUT 714;"CALL:END"         !End the Call connection.
215 !
216 END IF
217 END

Programming a Uplink DAI Test

The following example program demonstrates use of the Uplink DAI Test. See Programming a Uplink DAI Test for procedure on how to set up a Uplink DAI Test.

 
11 Testset=714
12 CLEAR SCREEN
13 CLEAR 7
14 CLEAR Testset
15 PRINT "*** Digital Audio Interface (DAI) Uplink Test Program for GSM/GPRS/EGPRS***"
16 PRINT
17 PRINT
35 !
36 Codec_type$="AFS"     !Set the Type of the Codec file to "Adaptive Full Rate".
37 OUTPUT 714;"CALL:CELL:OPERating:MODE CALL"     !Set the operating mode to Active Cell.
38 OUTPUT 714;"CALL:CELL:POWer -50dBm"     !Set the Cell Power.
39 !
40 !If necessary, configure the traffic channel parameters for the call assignment.
41 	 !See "CALL:TCHannel".
42 !If necessary, set the Paging Identity. See "CALL:PAGing:IDENtity[:TYPE]".
50 !If necessary, set the IMSI state. See "CALL:PAGing:IMSI".
60 !If necessary, set the repeat paging state. See "CALL:PAGing:REPeat[:STATe][:SELected]".
61 !
70 OUTPUT 714;"CALL:ORIGINATE"     ! Begin the BS originated call.
80 OUTPUT 714;"CALL:CONNECTED:STATE?"     ! The connect/idle query.
90 ENTER 714;Call_connected     ! Program will hang here until state
100                              ! change or protocol timer expires.
110     !************************************************************
120     ! If mobile is not set to auto-answer, answer the call.
130     !************************************************************
140 IF NOT Call_connected THEN
150 DISP "CALL NOT CONNECTED."
160 ELSE
170 OUTPUT 714;"CALL:TCHannel:CMODe:LSPeech:CHANnel ";Codec_type$
171        !Set the Logical Speech Channel to be tested.
172 OUTPUT 714;"CALL:TCHannel:DAINterface:TINTerface SENCoder"
173        ! Enable the DAI Speech Encoder.
174 !
175         !*********************************************************************
176         ! Command the Customer Test Station (TS) to apply reset pulse to DUT.
178         !*********************************************************************
179 !
180 BEEP
181 !
182 PRINT "Command the Customer Test Station (TS) to apply reset pulse to DUT."
185 PRINT "Press Enter when finished."
186 PRINT
188                 !
190 LINPUT "Press ENTER when finished",Keyboard$
191 !
193       !
194 OUTPUT 714;"CALL:DAINterface:RECord:STARt"
195 !
196         !*********************************************************************
197         ! Command the Customer Test Station (TS) to start transfering the
198         ! digital audio file to the Mobile Station.
201         !*********************************************************************
202 !
203 BEEP
204 !
205 PRINT "Command the Customer Test Station (TS) to start transfering the"
206 PRINT "digital audio file to the Mobile Station."
209 PRINT "Press Enter when finished."
210 PRINT
213         !
214 LINPUT "Press ENTER when finished",Keyboard$
215 !
216         !**********************************************************************
217         ! Command the Test Set to stop recording after the transmission of the
218         ! digital audio file is finished.
219         !**********************************************************************
220 !
221 BEEP
222 PRINT "Press ENTER When the Customer Test Station has finished the transmission of the digital audio file"
223 PRINT
224 !
225 LINPUT "Press ENTER when finished",Keyboard$
226 !
227 OUTPUT 714;"CALL:DAINterface:RECord:STOP"
228 !
229 PRINT "DAI Uplink Test Finished."
230 !
232 OUTPUT 714;"CALL:TCHannel:DAINterface:TINTerface OFF"
233        !Set the DAI Test Interface to Off.
234 OUTPUT 714;"CALL:END"
235        !End the Call connection.
236 !
237 END IF
238 END

Related Topics

Digital Audio Interface (DAI) Description

How to use the Digital Audio Interface Features

CALL:DAINterface