o
In this example there are two serial ports available (COM1 and COM15), which are
both USB adaptors.
Linux
1.
Finding devices
o
Open a terminal and execute the following command:
dmesg | grep -E ttyU\?S
o
The response will be similar to the following:
[ 2.029214] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 2.432572] 00:07: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 2.468149] 0000:00:03.3: ttyS4 at I/O 0xec98 (irq = 17) is a 16550A
[ 13.514432] usb 7-2: FTDI USB Serial Device converter now attached to
ttyUSB0
o
This shows that there are 3 serial ports available: ttyS0, ttyS4 and ttyUSB0 (a USB
adaptor)
2.
Checking port permissions
o
Using the ports found above, execute the following command
ls -l /dev/tty{S0, S4, USB0}
o
The permissions, given below, show that a user has to be root or a member of the
dialout group to be able to access these devices
crw-rw---- 1 root dialout 4, 64 Oct 31 06:44 /dev/ttyS0
crw-rw---- 1 root dialout 4, 68 Oct 31 06:45 /dev/ttyS4
crw-rw---- 1 root dialout 188, 0 Oct 31 07:58 /dev/ttyUSB0
3.
Checking group membership
Содержание X-VSR Series
Страница 18: ......