Technical data
117
tty_test in terminal mode
tty_test includes a simple and easy to use terminal mode. To start tty_test in terminal mode, execute:
/usr/lib/opendiva/divas/tty_test <tty_nr> t
Parameters for the tty_test in terminal mode
Parameter Level Description
tty_test Mandatory Dialogic
®
Diva
®
TTY number that should be used by this test. It should range between 1
and N, where N is the sum of B-channels of the Dialogic
®
Diva
®
Media Boards installed in
the system.
Normally, <CR> is forwarded to TTY. If you wish to strip <CR> from your input (for example to test the +++
escape operation), enter ENTER "r" ENTER. tty_test will enter the "no CR" mode and will remove <CR> from
your input before data is written to TTY. You can switch back to "normal" operation by entering ENTER "R"
ENTER. If you are in "no CR" mode, ENTER "r" ENTER writes a <CR> to TTY.
In terminal mode, you can view the content of the virtual modem status register if you enter ENTER show msr
ENTER. This will issue TIOCMGET ioctl on the TTY interface and print its output to the terminal.
You can set or clear the DTR line in the virtual Line Control Register (LCR). If you enter ENTER "DTR+" ENTER,
the DTR line will be set. If you enter ENTER "DTR-" ENTER, the DTR line will be cleared (TIOCMBIS and
TIOCMBIC ioctl codes).
To quit the tty_test terminal mode, enter ENTER "q" ENTER.
Selection of different TTY interfaces
tty_test has been developed to test and control the Dialogic
®
Diva
®
TTY interface. It tries to open the
/dev/ttyds[01 .... ] device node. With other operating systems, the name of the Diva TTY interface may be
different. You can still use tty_test without any changes if you create a symbolic link: ln -s
<your_real_tty_interface_device_node> /dev/ttydsXXX.