我刚刚购买了一个新的串口卡,但我无法让它工作,它确实出现在 lspci 和 dmesg 中,但是当我通过它发送数据时,我没有在另一个端口上收到它(我正在连接两个端口)端口和 DB-9 电缆)。
dmesg | grep 终端:
[ 0.000000] console [tty0] enabled
[ 0.810197] 00:04: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 0.831771] 0000:04:07.0: ttyS1 at I/O 0xc130 (irq = 21, base_baud = 115200) is a ST16650V2
[ 0.853172] 0000:04:07.1: ttyS2 at I/O 0xc120 (irq = 22, base_baud = 115200) is a ST16650V2
[ 0.860203] tty ttyS1: hash matches
lspci -v:
04:07.0 Serial controller: MosChip Semiconductor Technology Ltd. PCI 9865 Multi-I/O Controller (prog-if 02 [16550])
Subsystem: Device a000:1000
Flags: medium devsel, IRQ 21, NUMA node 0
I/O ports at c130 [size=8]
Memory at fe105000 (32-bit, non-prefetchable) [size=4K]
Memory at fe104000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: serial
Kernel modules: parport_pc
04:07.1 Serial controller: MosChip Semiconductor Technology Ltd. PCI 9865 Multi-I/O Controller (prog-if 02 [16550])
Subsystem: Device a000:1000
Flags: medium devsel, IRQ 22, NUMA node 0
I/O ports at c120 [size=8]
Memory at fe103000 (32-bit, non-prefetchable) [size=4K]
Memory at fe102000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: serial
Kernel modules: parport_pc
04:07.2 Parallel controller: Illegal Vendor ID Device 9865 (prog-if 03 [IEEE1284])
Subsystem: Device a000:2000
Flags: medium devsel, IRQ 10, NUMA node 0
I/O ports at c110 [disabled] [size=8]
I/O ports at c100 [disabled] [size=8]
Memory at fe101000 (32-bit, non-prefetchable) [disabled] [size=4K]
Memory at fe100000 (32-bit, non-prefetchable) [disabled] [size=4K]
Capabilities: <access denied>
注意:我正在运行 Parabola GNU/Linux-libre 64 位