(Page 1 of 1 in this chapter) Version
@echo off
REM
set TXUTIL=c:\nms\tx\bin
set TXCP=c:\nms\tx\cp
set TXCONFIG=c:\nms\tx\config
set BRD=1
if not "%1"=="" set BRD=%1
REM
REM TXn000 COMMUNICATIONS PROCESSOR BOOT FILE
REM
REM
REM Execute this file to boot/configure the TXn000 processor
REM
REM
REM Get the model number
%TXUTIL%\cpmodel -b %BRD%
if errorlevel 3000 goto boot3000
if errorlevel 2000 goto boot2000
echo ERROR! Check board number
goto end
:boot3000
%TXUTIL%\cplot -c %BRD% -f %TXCP%\cpk3000.lo -k -a -u ss7
goto loadsw
:boot2000
%TXUTIL%\cplot -c %BRD% -f %TXCP%\cpk.lo -k -a -u ss7
goto loadsw
:loadsw
REM
%TXUTIL%\cplot -c %BRD% -f %TXCONFIG%\TDMcp%BRD%.bin -g tdm
%TXUTIL%\cplot -c %BRD% -f %TXCP%\nmg.lot -n netmgr -p 5 -a
%TXUTIL%\cplot -c %BRD% -f %TXCP%\console.lot -n console -p 2 -a
%TXUTIL%\cplot -c %BRD% -f %TXCP%\inf.lot -n inf -p 10 -a
REM
REM download the MVIP and T1/E1 manager tasks to enable use
REM of the MVIP and T1/E1 host APIs; NOTE: if you do not
REM use either of these APIs, remove the following 2 lines.
REM
%TXUTIL%\cplot -c %BRD% -f %TXCP%\mvip.lot -n mvip -p 4 -a
%TXUTIL%\cplot -c %BRD% -f %TXCP%\t1e1mgr.lot -n t1e1mgr -p 15 -a
REM
REM Load MTP2 stand alone task
REM
%TXUTIL%\cplot -c %BRD% -f %TXCP%\mtp2.lot -n mtp -p 10 -a -s 12000
%TXUTIL%\mtp2cfg -b %BRD% -f %TXCONFIG%\MTP2cp%BRD%.cfg
:end
set TXUTIL=
set TXCP=
set TXCONFIG=
The Unix version of MTP2LOAD looks similar:
# Reset board, clear driver stats
# load CPK/OS and related tasks,
# and configure SS7
if [ -z "$TX2BASE" ]
then
TX2BASE=/usr/lib/txn
fi
if [ -z "$CONFIGBASE" ]
then
CONFIGBASE=/etc/txn
fi
# reset board
cputil -b$1 -R
# clear driver stats
cputil -b$1 -C
# get board type
BOARDTYPE=\Qcputil -b$1 -i\Q
case $BOARDTYPE in
TX3000)
CPK="cpk3000.lo"
;;
TX2000)
CPK="cpk2000.lo"
;;
*)
echo "board $1 not available"
exit 1
;;
esac
# load CPK/OS
cplot -c $1 -f $TX2BASE/$CPK -k -u ss7 -a
# load Related tasks
cplot -c $1 -f $TX2BASE/debug.lot -n debug -p 3 -a
cplot -c $1 -f $TX2BASE/nmg.lot -n netmgr -p 5 -a
cplot -c $1 -f $TX2BASE/console.lot -n console -p 2 -a
cplot -c $1 -f $TX2BASE/inf.lot -n inf -p 10 -a
# load TDM configuration - note: remove this line if you use
# serial (V.35) ports rather than T1/E1/MVIP
cplot -c $1 -f $CONFIGBASE/TDMcp$1.bin -g tdm
# load the MVIP and T1/E1 manager tasks to enable use
# of the MVIP and T1/E1 host APIs. Note: if you do not
# use either of these APIs, remove the following two lines
cplot -c $1 -f $TX2BASE/mvip.lot -n mvip -p 4 -a
cplot -c $1 -f $TX2BASE/t1e1mgr.lot -n t1e1mgr -p 15 -a
# MTP2 stand alone task
cplot -c $1 -f $TX2BASE/mtp2.lot -n mtp -p 10 -a
# MTP2 configuration.
mtp2cfg -b $1 -f $CONFIGBASE/MTP2cp$1.cfg
<12/05/1997 15:51:58> mtp 1 1 Registering MTP Layer 2 <12/05/1997 15:51:58> mtp 1 1 Configuring MTP Layer 1 <12/05/1997 15:51:58> mtp 1 1 MTP1 Initializing. <12/05/1997 15:51:58> mtp 1 1 MTP1 General Configuration <12/05/1997 15:51:58> mtp 1 1 MTP1 Configuring link 0: TDM, External <12/05/1997 15:51:58> mtp 1 1 MTP1 Configuring link 1: TDM, External <12/05/1997 15:51:58> mtp 1 1 MTP1 Configuring link 2: TDM, External <12/05/1997 15:51:58> mtp 1 1 MTP1 Configuring link 3: TDM, External <12/05/1997 15:51:58> mtp 1 1 MTP1 Configuration Done <12/05/1997 15:51:58> mtp 1 1 Configuring MTP Layer 2 <12/05/1997 15:51:58> mtp 1 1 MTP2: General Configuration <12/05/1997 15:51:58> mtp 1 1 MTP2: Link 0 Configuration <12/05/1997 15:51:58> mtp 1 1 MTP2: Link 1 Configuration <12/05/1997 15:51:58> mtp 1 1 MTP2: Link 2 Configuration <12/05/1997 15:51:58> mtp 1 1 MTP2: Link 3 Configuration
mtp2app is an ANSI version and mtp2itu is an ITU-T (formerly CCITT) version of the sample application. See Chapter 4 for more details.
connect 0 to ask the board to start the connect procedure on link 0. The txalarm output should look like the following if the link aligns properly:
<12/05/1997 15:52:45> mtp 1 1 Flushing Buffers (OPC=0)
<12/05/1997 15:52:45> mtp 1 1 Starting Alignment
<12/05/1997 15:52:45> mtp 1 1 IAC Rx SIO
<12/05/1997 15:52:45> mtp 1 1 IAC Rx SIO
<12/05/1997 15:52:45> mtp 1 1 Rx SIN
<12/05/1997 15:52:47> mtp 1 1 ALIGN TIMER 4 EXPIRED
(Link Aligned)
-b 2 to run on board 2), and type connect 0 on each. The txalarm output should look like the following if the link aligns properly:
<12/05/1997 15:52:42> mtp 2 1 Flushing Buffers (OPC=0) (Lnk 0) <12/05/1997 15:52:42> mtp 2 1 Starting Alignment (Lnk 0) <12/05/1997 15:52:45> mtp 1 1 Starting Alignment (Lnk 0) <12/05/1997 15:52:45> mtp 2 1 Received SIOS (Lnk 0) <12/05/1997 15:52:45> mtp 1 1 IAC Rx SIO (Lnk 0) <12/05/1997 15:52:45> mtp 1 1 IAC Rx SIO (Lnk 0) <12/05/1997 15:52:45> mtp 1 1 Rx SIN (Lnk 0) <12/05/1997 15:52:45> mtp 2 1 IAC Rx SIO (Lnk 0) <12/05/1997 15:52:45> mtp 2 1 IAC Rx SIO (Lnk 0) <12/05/1997 15:52:45> mtp 2 1 Rx SIN (Lnk 0) <12/05/1997 15:52:47> mtp 1 1 ALIGN TIMER 4 EXPIRED (Lnk 0) <12/05/1997 15:52:47> mtp 2 1 ALIGN TIMER 4 EXPIRED (Lnk 0)
Figure 2. MTP 2 Service Access Points (SAPS)
|
Range
|
Usage
|
|---|---|
|
0x00 - 0x1F
|
Reserved for use by system utilities, configuration utilities, and management utilities
|
|
0x20 - 0x3F
|
Available for use by applications
|
|
Data Type
|
Description
|
|---|---|
|
U8
|
Unsigned 8-bit quantity
|
|
S16
|
Signed 16-bit quantity
|
|
U32
|
Unsigned 32-bit quantity
|
Figure 3. Message Flow for Connection Establishment
Figure 4. Message Flow for an Outgoing Data Transfer
Figure 5. Notification of an Incoming Data Packet
Figure 6. Use of "Retrieve" Status Requests to Implement Link Changeover
(Page 1 of 1 in this chapter) Version