Using the MTP 2 standalone task: mtp2app and mtp2itu

Name

mtp2app (for ANSI links)

mtp2itu (for ITU-T links)

Purpose

Demonstrate the use of the MTP 2 standalone task. Both programs exercise the MTP 2 task on the TX board.

Usage

mtp2app options

mtp2itu options

where options are:

Option

Description

Default ITU

Default ANSI

-s sio

Service information octet for sent SLTMs (signaling link test messages).

0xb1

0xb2

-b board

Board number

1

1

-o opc

Local point code

1

1.1.1

-d dpc

Adjacent point code

2

1.1.2


Prerequisites

Requires a single computer with a TX board installed and the following software:

Procedure

To run the demonstration programs:

Step

Action

1

Enter one of the following commands from the command line prompt:

mtp2app -b board

mtp2itu -b board

where board is the TX board number to open.

At startup, the demonstration programs attempt to bind to links 0 through 3. If some of these links fail, the programs still properly execute on the available links. The programs start in monitor mode, printing out to the screen whenever an MTP 2 event is received. In monitor mode, if an SLTM (signaling link test message) is received, an SLTA (signaling link test acknowledgement) is automatically transmitted. If links 0 and 1 are connected and a disconnect indication is received for one of those links, a changeover is automatically performed to the other link.

2

To enter command mode, press Enter to display the following prompt:

Command?>

mtp2app and mtp2itu support the following commands:

Command

Description

connect link

Connects normal mode: levels 1 and 2.

econn link

Connects emergency mode: levels 1 and 2.

powconn link

Places link in power-on state.

disconn link

Disconnects the link.

send link

Sends an SLTM on the link.

status link

Sets status conditions on the specified link. Options include:

Start = Start emergency state

End = End emergency state

Up = Local processor up

Down = Local processor down

flow link

Deprecated.

q

Quits the MTP 2 demonstration program.

?

Lists the supported commands.


The following sample shows output from the MTP 2 demonstration program:

     Command?>connect 0
     Link 0:Connecting
     Link 0:Disconnect Indication received - reason 2
     Command?>connect 0
     Link 0:Connecting
     Link 0:Connect Confirmation received
     Link 0:Received SLTM, sending SLTA in response
     Link 0:Data Confirmation received acking 1 messages
     Command?>send 0
     Link 0:Sending a SLTM
     Link 0:Data Confirmation received acking 1 messages
     Link 0:Received a correct SLTA
     Command?>q

The demonstration programs attempt to bind with four links. If you defined less than four links, the programs still execute properly on the existing links. However, the following alarm is visible in txalarm output:

     <10/05/2003 15:51:58> mtp       1  13191 Internal Error [4]

3

Press Enter again to exit command mode and return to monitor mode.