User manual
C hwtest
TX ↔ RX
RX ↔ TX
RTS ↔ CTS, RI
CTS, RI ↔ RTS
DTR ↔ DSR, CD
DSR, CD ↔ DTR
GND ↔ GND
Table 10: Serial Test Cable Wiring
1 CD
2 TXD
3 RXD
4 DTR
5 GND
6 DSR
7 RTS
8 CTS
9 RI
1 CD
2 TXD
3 RXD
4 DTR
5 GND
6 DSR
7 RTS
8 CTS
9 RI
2 CANL
3 GND
7 CANH
PORT 2 PORT 4 USB-CAN
Figure 33: Serial Test Cable Wiring
The test file will be transferred from the first interface to the other and vice versa. This test can
be also used to simultaneously test the serial and USB interfaces. To do this you must connect
the USB port with the serial one using a USB-to-Serial adapter based on the FTDI chip. The
serial test module has its own parameters --seri and --sero to configure the interfaces. With
the --sblock parameter, the serial write block size can be configured. By default it is set to 64
bytes. The --rtscts option enables hardware handshake. The --modem option enables the test of
the modem status pins.
Usage examples:
hwtest --cycles=1 --size=4096 --serial --seri=/dev/ttyS1 --sero=/dev/ttyS2
executes the serial test for on-board serial interfaces
hwtest --cycles=1 --size=4096 --serial --sblock=200 --rtscts
executes the serial test for default on-board serial interfaces (/dev/ttyS1 and /dev/ttyS2) using
hardware handshake and write block size of 200 bytes
hwtest --cycles=1 --size=4096 --serial --seri=/dev/ttyS1 --sero=/dev/ttyUSB0
executes the serial test using a USB-to-Serial adapter based on the FTDI chip
C.4. GPIO Test
The GPIO test module consists of following tests:
• IO test (will be activated with --io option)
• poll(), select() and interrupt functionality test (will be activated with --poll option)
• buzzer test (will be activated with --buz option)
• LEDs test (will be activated with --led option)
May 2014 OnRISC User Manual 78