First, install the serial port tool setserial.
Command: sudo apt-Get
Install setserial
, Using setserial
Tool to view the serial port information,
-
$ Sudo setserial/dev/ttys0- /Dev/ttys0, Line 0, UART: Unknown, Port: 0x03f8, IRQ: 4 Baud_base: 115200, close_delay: 50, divisor: 0 Closing_wait: 3000 Flags: Spd_normal skip_test $ Sudo setserial/dev/ttys3- /Dev/ttys3, Line 3, UART: 16550a, Port: 0xb800, IRQ: 18 Baud_base: 115200, close_delay: 50, divisor: 0 Closing_wait: 3000 Flags: Spd_normal |
The main objective is to bring the serial port and
PCI
Differences between extended serial ports. The difference is that
UART:
Wei
Unknow
. However, if you detect this step
UART
Is
16550a
Instead
Unknow
To prove that your system has recognized the extended serial port and does not need to be further configured.
Subsequently, use
Lspci
View
PCI
Device status, command:
Lspci
-V
. Output:
0:06. 0 serial Controller : Netmos technology PCI 9865 multi-I/O controller (Prog-If 02) Subsystem: Device a000: 1000 Flags: Medium devsel, IRQ 17 I/O Ports at bc00 [size = 8] Memory at fd7ff000 (32-bit, Non-prefetchable) [size = 4 K] Memory at fd7fe000 (32-bit, Non-prefetchable) [size = 4 K] Capabilities: <access Denied> 0:06. 1 serial Controller : Netmos technology PCI 9865 multi-I/O controller (Prog-If 02) Subsystem: Device a000: 1000 Flags: Medium devsel, IRQ 18 I/O Ports at b800 [size = 8] Memory at fd7fd000 (32-bit, Non-prefetchable) [size = 4 K] Memory at fd7fc000 (32-bit, Non-prefetchable) [size = 4 K] Capabilities: <access Denied> |
Find"
Serial
Controller :"
That is, the serial controller, followed by device information, such
9865
Control chip, the following is the serial port details, such
IRQ
Yes
17
,
I/O
The address is
0xbc00
.
Finally, set the serial device file
,
Modify the following command line according to the actual situation.
$ Sudo setserial/dev/ttys2 Port 0xbc00 UART 16550a IRQ 17 baud_base 115200 $ Sudo setserial/dev/ttys3 Port 0xb800 UART 16550a IRQ 18 baud_base 115200 |
Reusable
Setserial
View the serial port status.