Specifications
132 Appendix A: Test and Library Files HighWire MTP-2 - 1.2, September 4, 2002
8-2. Compiling the CBIPTEST Program
To compile the CBITEST program, you may have to modify the Makefile for your
local environment and C compiler. Then follow these steps:
cd /opt/SBEhw/src/cbiptest
make clobber
make
8-3. Running the CBIPTEST Program
The executables will be stored in ./obj/libcbi.so (library) and
./cbiptest (the test program). Copy the two executables to where they are to
be run, if not on this machine.
Set the location from which the library routines will be located by setting an
environment variable with the command:
setenv LD_LIBRARY_PATH .
After making sure that a loopback cable is installed between ports 0 and 1 on
the SBE HW400 board, and the board and download module are freshly
restarted, execute the test program:
cbiptest <device><framing><clocking><ports><timeslots><delay>
where:
<device>=the device name of the MPT2 device on the HW400. For
example, /dev/hw0_mtp2_0 is a device on board 0,
/dev/hw1_mtp2_0 is a device on board 1, etc.
<framing>=framing option, either T1 or E1
<clocking>=Tx clock sourcing option for the framing. Allowed values are:
LOCAL—drive the TCLK from local oscillator
LOOP—derive from Rx clock
THROUGH—TBD
<ports>=the number of ports to be used in the test (2 is suggested)
<timeslots>=the number of DS0 timeslots to be used; 1–23 on T1, or
1–31 on E1
<delay>=a delay value in milliseconds. Suggested value is 50. The value
0 means that it will automatically determine the delay
and adjust while the test is running.
Example:
Example:Example:
Example:
cbiptest /dev/hw0_mtp2_0 E1 LOCAL 2 1 50
to test HW board 0, with E1 framing, Tx clock sourcing set to local, two
ports, one timeslot each, and a delay of 50ms