'GROUP=snr_ot
'DumpMemory(iPort, lMem, strAddr, iLen, strFilename, iDumpType)[memtype: x=0, y=1, p=2]
'in OT
'size v1: 1170, v2:1176
'address v1:6400, v2:7400
'dump training SNRs P:$006400  ##SnrTrn
'DumpMemory 1 2 ##PtBuf 1170 work\snrs_train.txt 1
DumpMemory 1 2 7600 2048 work\snrs_train.txt 1
ToFreq work\snrs_train.txt 1 0
DumpMemory 1 1 10e5 2048 work\snrs_showtime.txt 1
ToFreq work\snrs_showtime.txt 1 0
plot snr_gnu.scr

'GROUP=snrf_ot
'DumpMemory(iPort, lMem, strAddr, iLen, strFilename, iDumpType)[memtype: x=0, y=1, p=2]
'in OT
'size v1: 1170, v2:1176
'address v1:6400, v2:7400
'dump training SNRs P:$006400  ##SnrTrn
DumpMemory 1 2 7600 2048 work\snrs_train.txt 1
ToFreq work\snrs_train.txt 1 1
DumpMemory 1 1 10e5 2048 work\snrs_showtime.txt 1
ToFreq work\snrs_showtime.txt 1 1
plot snr_gnu_f.scr

'GROUP=snrf_rt
'DumpMemory(iPort, lMem, strAddr, iLen, strFilename, iDumpType)[memtype: x=0, y=1, p=2]
'in OT
'size v1: 1170, v2:1176
'address v1:6400, v2:7400
'dump training SNRs P:$006400  ##SnrTrn
DumpMemory 1 2 7600 2048 work\snrs_train.txt 1
ToFreq work\snrs_train.txt 2 1
DumpMemory 1 1 10eb 2048 work\snrs_showtime.txt 1
ToFreq work\snrs_showtime.txt 2 1
plot snr_gnu_f.scr

'GROUP=snr_rt
debug level 0
'DumpMemory(iPort, lMem, strAddr, iLen, strFilename, iDumpType)[memtype: x=0, y=1, p=2]
'in RT
'size v1:2040,v2:1964
'address v1:6400, v2:7400
''dump training SNRs P:$006400  ##SnrTrn
DumpMemory 1 2 7600 2048 work\snrs_train.txt 1
ToFreq work\snrs_train.txt 2 0
DumpMemory 1 1 10eb 2048 work\snrs_showtime.txt 1
ToFreq work\snrs_showtime.txt 2 0
plot snr_gnu.scr

'GROUP=snr_tone_ot
'DumpMemory(iPort, lMem, strAddr, iLen, strFilename, iDumpType)[memtype: x=0, y=1, p=2]
'in OT
'size v1: 1170, v2:1176
'address v1:6400, v2:7400
'dump training SNRs P:$006400  ##SnrTrn
'DumpMemory 1 2 ##PtBuf 1170 work\snrs_train.txt 1
DumpMemory 1 2 6c00 ##CfgUsTones work\snrs_tone.txt 1
'dump showtime SNRs Y:$0010c4 ##ScratchPadLowExt
plot snr_tone_gnu.scr

'GROUP=snr_tone_rt
'DumpMemory(iPort, lMem, strAddr, iLen, strFilename, iDumpType)[memtype: x=0, y=1, p=2]
'in OT
'size v1: 1170, v2:1176
'address v1:6400, v2:7400
'dump training SNRs P:$006400  ##SnrTrn
'DumpMemory 1 2 ##PtBuf 1170 work\snrs_train.txt 1
DumpMemory 1 2 6c00 2000 work\snrs_tone.txt 1
'dump showtime SNRs Y:$0010c4 ##ScratchPadLowExt
plot snr_tone_gnu.scr

'GROUP=bandplan_997
'MT_MIB_BANDPLAN997 = 1	; 997 + enable_ds2
memop 1 vdslLineConfBandPlan 1 
memop 1 CfgBandPlan 1 
memop 1 vdslTwConfig2 0
memop 1 CfgUsPbs 3
memop 1 CfgDsPbs 3
memop 1 vdslLineMCMConfProfileRxBandStart1 6
memop 1 vdslLineMCMConfProfileRxBandStop1 33
memop 1 vdslLineMCMConfProfileRxBandStart2 698
memop 1 vdslLineMCMConfProfileRxBandStop2 1179
memop 1 vdslLineMCMConfProfileRxBandStart3 1640
memop 1 vdslLineMCMConfProfileRxBandStop3 2781
memop 1 vdslLineMCMConfProfileRxBandStart4 0
memop 1 vdslLineMCMConfProfileRxBandStop4 0
memop 1 CfgUsPb4FirstTone 0
memop 1 CfgUsPb4LastTone 0
memop 1 vdslLineMCMConfProfileTxBandStart1 34
memop 1 vdslLineMCMConfProfileTxBandStop1 691
memop 1 vdslLineMCMConfProfileTxBandStart2 1186
memop 1 vdslLineMCMConfProfileTxBandStop2 1631
memop 1 vdslLineMCMConfProfileTxBandStart3 2782
memop 1 vdslLineMCMConfProfileTxBandStop3 3717
memop 1 vdslLineMCMConfProfileTxBandStart4 0
memop 1 vdslLineMCMConfProfileTxBandStop4 0
memop 1 vdslMetanoiaRxPgaRefOt 273 
memop 1 vdslMetanoiaRxPgaRefRt 275

'GROUP=test_run
rungrp bandplan_998
rungrp bandplan_997

'GROUP=bandplan_998
'MT_MIB_BANDPLAN998 = 2	; 998 + enable_ds2
memop 1 vdslLineConfBandPlan 2
memop 1 CfgBandPlan 2
memop 1 vdslTwConfig2 0
memop 1 CfgUsPbs 3
memop 1 CfgDsPbs 3
memop 1 vdslLineMCMConfProfileRxBandStart1 6
memop 1 vdslLineMCMConfProfileRxBandStop1 33
memop 1 vdslLineMCMConfProfileRxBandStart2 872
memop 1 vdslLineMCMConfProfileRxBandStop2 1207
memop 1 vdslLineMCMConfProfileRxBandStart3 1972
memop 1 vdslLineMCMConfProfileRxBandStop3 2787
memop 1 vdslLineMCMConfProfileRxBandStart4 0
memop 1 vdslLineMCMConfProfileRxBandStop4 0
memop 1 CfgUsPb4FirstTone 0
memop 1 CfgUsPb4LastTone 0
memop 1 vdslLineMCMConfProfileTxBandStart1 34
memop 1 vdslLineMCMConfProfileTxBandStop1 865
memop 1 vdslLineMCMConfProfileTxBandStart2 1208
memop 1 vdslLineMCMConfProfileTxBandStop2 1967
memop 1 vdslLineMCMConfProfileTxBandStart3 2788
memop 1 vdslLineMCMConfProfileTxBandStop3 3219
memop 1 vdslLineMCMConfProfileTxBandStart4 0
memop 1 vdslLineMCMConfProfileTxBandStop4 0
memop 1 vdslMetanoiaRxPgaRefOt 275 
memop 1 vdslMetanoiaRxPgaRefRt 277

'GROUP=bandplan_998_enhance
'MT_MIB_BP_META1 = 6	; 998 + enable_ds2 + enable_us3
memop 1 vdslLineConfBandPlan 6 
memop 1 CfgBandPlan 6 
memop 1 vdslTwConfig2 0
memop 1 CfgUsPbs 4
memop 1 CfgDsPbs 3
memop 1 vdslLineMCMConfProfileRxBandStart1 6
memop 1 vdslLineMCMConfProfileRxBandStop1 33
memop 1 vdslLineMCMConfProfileRxBandStart2 872
memop 1 vdslLineMCMConfProfileRxBandStop2 1207
memop 1 vdslLineMCMConfProfileRxBandStart3 1972
memop 1 vdslLineMCMConfProfileRxBandStop3 2787
memop 1 vdslLineMCMConfProfileRxBandStart4 3228
memop 1 vdslLineMCMConfProfileRxBandStop4 3828
memop 1 CfgUsPb4FirstTone 0
memop 1 CfgUsPb4LastTone 0
memop 1 vdslLineMCMConfProfileTxBandStart1 34
memop 1 vdslLineMCMConfProfileTxBandStop1 865
memop 1 vdslLineMCMConfProfileTxBandStart2 1208
memop 1 vdslLineMCMConfProfileTxBandStop2 1967
memop 1 vdslLineMCMConfProfileTxBandStart3 2788
memop 1 vdslLineMCMConfProfileTxBandStop3 3219
memop 1 vdslLineMCMConfProfileTxBandStart4 0
memop 1 vdslLineMCMConfProfileTxBandStop4 0
memop 1 vdslMetanoiaRxPgaRefOt 272 
memop 1 vdslMetanoiaRxPgaRefRt 274

'GROUP=bandplan_symmetric
'MT_MIB_BP_META2 = 7	; symmetric
memop 1 vdslLineConfBandPlan 7
memop 1 CfgBandPlan 7 
memop 1 vdslTwConfig2 0
memop 1 CfgUsPbs 4
memop 1 CfgDsPbs 4
memop 1 vdslLineMCMConfProfileRxBandStart1 6
memop 1 vdslLineMCMConfProfileRxBandStop1 33
memop 1 vdslLineMCMConfProfileRxBandStart2 616
memop 1 vdslLineMCMConfProfileRxBandStop2 1207
memop 1 vdslLineMCMConfProfileRxBandStart3 1972
memop 1 vdslLineMCMConfProfileRxBandStop3 2787
memop 1 vdslLineMCMConfProfileRxBandStart4 3230
memop 1 vdslLineMCMConfProfileRxBandStop4 3801
memop 1 CfgUsPb4FirstTone 0
memop 1 CfgUsPb4LastTone 0
memop 1 vdslLineMCMConfProfileTxBandStart1 34
memop 1 vdslLineMCMConfProfileTxBandStop1 609
memop 1 vdslLineMCMConfProfileTxBandStart2 1208
memop 1 vdslLineMCMConfProfileTxBandStop2 1967
memop 1 vdslLineMCMConfProfileTxBandStart3 2788
memop 1 vdslLineMCMConfProfileTxBandStop3 3219
memop 1 vdslLineMCMConfProfileTxBandStart4 3804
memop 1 vdslLineMCMConfProfileTxBandStop4 4059
memop 1 vdslMetanoiaRxPgaRefOt 272 
memop 1 vdslMetanoiaRxPgaRefRt 274

'GROUP=bandplan_998_isdn
'MT_MIB_BANDPLAN998_ISDN = 8	; 998_ISDN + enable_ds2
memop 1 vdslLineConfBandPlan 8
memop 1 CfgBandPlan 8
memop 1 vdslTwConfig2 2
memop 1 CfgUsPbs 3
memop 1 CfgDsPbs 3
memop 1 vdslLineMCMConfProfileRxBandStart1 34
memop 1 vdslLineMCMConfProfileRxBandStop1 65
memop 1 vdslLineMCMConfProfileRxBandStart2 872
memop 1 vdslLineMCMConfProfileRxBandStop2 1207
memop 1 vdslLineMCMConfProfileRxBandStart3 1972
memop 1 vdslLineMCMConfProfileRxBandStop3 2787
memop 1 vdslLineMCMConfProfileRxBandStart4 0
memop 1 vdslLineMCMConfProfileRxBandStop4 0
memop 1 CfgUsPb4FirstTone 0
memop 1 CfgUsPb4LastTone 0
memop 1 vdslLineMCMConfProfileTxBandStart1 66
memop 1 vdslLineMCMConfProfileTxBandStop1 865
memop 1 vdslLineMCMConfProfileTxBandStart2 1208
memop 1 vdslLineMCMConfProfileTxBandStop2 1967
memop 1 vdslLineMCMConfProfileTxBandStart3 2788
memop 1 vdslLineMCMConfProfileTxBandStop3 3219
memop 1 vdslLineMCMConfProfileTxBandStart4 0
memop 1 vdslLineMCMConfProfileTxBandStop4 0
memop 1 vdslMetanoiaRxPgaRefOt 275
memop 1 vdslMetanoiaRxPgaRefRt 277

'GROUP=clearCRC
memop 1 vdslOtPerfDataInits 1
memop 1 vdslRtPerfDataInits 1
memop 1 vdslOtIntlvChanFixedOctets 0
memop 1 vdslRtIntlvChanFixedOctets 0
memop 1 vdslOtIntlvChanBadBlks 0
memop 1 vdslRtIntlvChanBadBlks 0
memop 1 DrsCwHistAccCorr 0
memop 1 DrsCwHistAccUnCorr 0
memop 1 RxPktCntr 0
memop 1 TxPktCntr 0

'GROUP=reset_power
power 0
sleep 3
power 1

'GROUP=testByINC
memop 1 vdslLineConfDownSlowMaxDataRate -5000
'memop 1 vdslLineConfUpTargetSnrMgn -4
memaction 1 disconnect

'GROUP=testBySNR
memop 1 vdslLineConfDownTargetSnrMgn +4 
memop 1 vdslLineConfUpTargetSnrMgn +4 
memaction 1 disconnect

'GROUP=stopWhen
stopwhen vdslOtPerfDataInits > 20
memaction 1 disconnect

'GROUP=writemib
'writemib port group table index param value
writemib 1 1 1 1 1 2

'GROUP=SampleMsg
msg hello

'GROUP=SOP_Showtime
memaction 1 disconnect
waitshowtime 1

'GROUP=SOP_ProfileAll
'bandplan_998_isdn
memop 1 vdslLineConfBandPlan 8
memop 1 CfgBandPlan 8
memop 1 vdslTwConfig2 2
memop 1 CfgUsPbs 3
memop 1 CfgDsPbs 3
memop 1 vdslLineMCMConfProfileRxBandStart1 34
memop 1 vdslLineMCMConfProfileRxBandStop1 65
memop 1 vdslLineMCMConfProfileRxBandStart2 872
memop 1 vdslLineMCMConfProfileRxBandStop2 1207
memop 1 vdslLineMCMConfProfileRxBandStart3 1972
memop 1 vdslLineMCMConfProfileRxBandStop3 2787
memop 1 vdslLineMCMConfProfileRxBandStart4 0
memop 1 vdslLineMCMConfProfileRxBandStop4 0
memop 1 CfgUsPb4FirstTone 0
memop 1 CfgUsPb4LastTone 0
memop 1 vdslLineMCMConfProfileTxBandStart1 66
memop 1 vdslLineMCMConfProfileTxBandStop1 865
memop 1 vdslLineMCMConfProfileTxBandStart2 1208
memop 1 vdslLineMCMConfProfileTxBandStop2 1967
memop 1 vdslLineMCMConfProfileTxBandStart3 2789
memop 1 vdslLineMCMConfProfileTxBandStop3 3219
memop 1 vdslLineMCMConfProfileTxBandStart4 0
memop 1 vdslLineMCMConfProfileTxBandStop4 0
memop 1 vdslMetanoiaRxPgaRefOt 275
memop 1 vdslMetanoiaRxPgaRefRt 277
memaction 1 disconnect
waitshowtime 1
'bandplan_symmetric
memop 1 vdslLineConfBandPlan 7
memop 1 CfgBandPlan 7 
memop 1 vdslTwConfig2 0
memop 1 CfgUsPbs 4
memop 1 CfgDsPbs 4
memop 1 vdslLineMCMConfProfileRxBandStart1 6
memop 1 vdslLineMCMConfProfileRxBandStop1 33
memop 1 vdslLineMCMConfProfileRxBandStart2 616
memop 1 vdslLineMCMConfProfileRxBandStop2 1207
memop 1 vdslLineMCMConfProfileRxBandStart3 1972
memop 1 vdslLineMCMConfProfileRxBandStop3 2787
memop 1 vdslLineMCMConfProfileRxBandStart4 3230
memop 1 vdslLineMCMConfProfileRxBandStop4 3801
memop 1 CfgUsPb4FirstTone 0
memop 1 CfgUsPb4LastTone 0
memop 1 vdslLineMCMConfProfileTxBandStart1 34
memop 1 vdslLineMCMConfProfileTxBandStop1 609
memop 1 vdslLineMCMConfProfileTxBandStart2 1208
memop 1 vdslLineMCMConfProfileTxBandStop2 1967
memop 1 vdslLineMCMConfProfileTxBandStart3 2789
memop 1 vdslLineMCMConfProfileTxBandStop3 3219
memop 1 vdslLineMCMConfProfileTxBandStart4 3804
memop 1 vdslLineMCMConfProfileTxBandStop4 4059
memop 1 vdslMetanoiaRxPgaRefOt 272 
memop 1 vdslMetanoiaRxPgaRefRt 274
memaction 1 disconnect
waitshowtime 1




'GROUP=SOP_Linesim
'setuplinesim 1 1000
memaction 1 disconnect
sleep 60
readmemory 1 vdslOtPhysCurrLineRate
readmemory 1 vdslRtPhysCurrLineRate
'GROUP=testByMsg
memop 1 xdsl2LConfProfMsgMinDs +4 
memop 1 xdsl2LConfProfMsgMinUs +4 
memaction 1 soft_retrain

