Testing – Solvline PCIe Serial Multi-port Card Linux Driver User Manual

Page 7

Advertising
background image

7. Testing

#cd async_multiport
#./sb_test [Port Name] [Baudrate] [TestMode]
If you want to know how to use the sb_test, you just type the name without any
argument. And then you can see the method of the usage.

root@utu:/tmp/eh_async_mpdrv.v19/async_multiport# ./sb_test
Usage: ./sb_test [Port Name] [Baudrate] [TestMode]
Port Name : /dev/ttyMP0 ~ /dev/ttyMP32
Baudrate : 9600, 19200, ...
TestMode : 0(Loopback) 1(Send) 2(Recv)
root@utu:/tmp/eh_async_mpdrv.v17/async_multiport#

Usage: ./sb_test [Port Name] [Baudrate] [TestMode]

Port Name

: /dev/ttyMP0 ~ /dev/ttyMP32

Baudrate

: 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600

TestMode

: 0 (Loopback)

1 (Send)

2 (Receive)

Example :

$./sb_test /dev/ttyMP0 9600 0

$./sb_test /dev/ttyMP5 921600 0

$./sb_test /dev/ttyMP3 115200 1

(Note) There is a blank space after “/sb_test“ and before “/dev/”.

After you connect the loopback connector to the port you wish to test, you can test it by
using the loopback mode.
The test pattern is “abcdefghijklmnopqrstuvwxyz” and the program generates characters
from “a” to “z” repeatedly increasing by one character.

root@utu:/tmp/eh_async_mpdrv.v19/async_multiport# ./sb_test /dev/ttyMP0 9600 0
Loopback Test Mode !
a
ab
abc
abcd
abcde
abcdef
abcdefg
abcdefgh
abcdefghi
abcdefghij
abcdefghijk
abcdefghijkl
abcdefghijklm
abcdefghijklmn
abcdefghijklmno
abcdefghijklmnop

When the multi-port card driver is installed correctly, you will see the test result
repeatedly as shown above.

Advertising
This manual is related to the following products: