我有一个基于 WCH CH355 芯片的四端口串行端口。它已经工作了一年多。然后我重新启动了……它曾经是 ttyS4 - ttyS7
我认为这是内核版本问题,但我可能错了。我不记得我做了什么特别的事情来让它工作。这并不意味着我没有做过。只是不记得了……
谢谢
lspci 列出卡
37:04.0 Serial controller: WCH.CN CH355 PCI Quad Serial Port Controller (rev 10)
韓國 |删除 37:
[ 0.312115] pci 0000:37:04.0: [4348:7173] type 00 class 0x070002
[ 0.312134] pci 0000:37:04.0: reg 0x10: [io 0xd040-0xd047]
[ 0.312143] pci 0000:37:04.0: reg 0x14: [io 0xd048-0xd04f]
[ 0.312152] pci 0000:37:04.0: reg 0x18: [io 0xd050-0xd057]
[ 0.312162] pci 0000:37:04.0: reg 0x1c: [io 0xd058-0xd05f]
[ 0.312171] pci 0000:37:04.0: reg 0x20: [io 0xd000-0xd03f]
[ 0.312259] pci 0000:37:09.0: [11c1:5811] type 00 class 0x0c0010
[ 0.312278] pci 0000:37:09.0: reg 0x10: [mem 0xf9000000-0xf9000fff]
[ 0.312347] pci 0000:37:09.0: supports D1 D2
[ 0.312349] pci 0000:37:09.0: PME# supported from D0 D1 D2 D3hot
[ 0.358239] pci_bus 0000:37: resource 0 [io 0xd000-0xdfff]
[ 0.358240] pci_bus 0000:37: resource 1 [mem 0xf9000000-0xf90fffff]
[ 0.358241] pci_bus 0000:37: resource 4 [mem 0x000a0000-0x000bffff window]
[ 0.358243] pci_bus 0000:37: resource 5 [mem 0xe0000000-0xefffffff window]
[ 0.358244] pci_bus 0000:37: resource 6 [mem 0xf8000000-0xf9ffffff window]
[ 0.358245] pci_bus 0000:37: resource 7 [mem 0xfed00000-0xfed003ff window]
[ 0.358246] pci_bus 0000:37: resource 8 [mem 0xfed40000-0xfed44fff window]
[ 0.358247] pci_bus 0000:37: resource 9 [io 0x0000-0x03af window]
[ 0.358249] pci_bus 0000:37: resource 10 [io 0x03b0-0x03df window]
[ 0.358250] pci_bus 0000:37: resource 11 [io 0x03e0-0x0cf7 window]
[ 0.358251] pci_bus 0000:37: resource 12 [io 0x0d00-0x0fff window]
[ 0.358252] pci_bus 0000:37: resource 13 [io 0x1000-0xdfff window]
[ 7.920092] firewire_ohci 0000:37:09.0: added OHCI v1.0 device as card 0, 8 IR + 8 IT contexts, quirks 0x0
[ 8.476198] firewire_core 0000:37:09.0: created device fw0: GUID 0060b000007a97ac, S400
所以它看到了但是 setserial -g /dev/ttyS[0123456789]
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
/dev/ttyS4, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS5, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS6, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS7, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS8, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS9, UART: unknown, Port: 0x0000, IRQ: 0
我认为这可能是更新问题。我不记得之前运行了什么,但现在 uname -a
Linux bobfish 4.15.0-32-generic #35~16.04.1-Ubuntu SMP Fri Aug 10 21:54:34 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
根据要求:lspci -knn | grep -i serial -A3
37:04.0 Serial controller [0700]: WCH.CN CH355 PCI Quad Serial Port Controller [4348:7173] (rev 10)
Subsystem: WCH.CN CH355 PCI Quad Serial Port Controller [4348:3473]
37:09.0 FireWire (IEEE 1394) [0c00]: LSI Corporation FW322/323 [TrueFire] 1394a Controller [11c1:5811] (rev 70)
Subsystem: Hewlett-Packard Company FW322/323 [TrueFire] 1394a Controller [103c:130b]
Kernel driver in use: firewire_ohci
答案1
经过许多小时的重启和谷歌搜索后,我终于找到了答案。
我花了 17 美元买了一张不同的串行卡。
我发现文档中支持 WCH 355 卡。大约每 5 次重启就会发现该卡。我只能猜测有一些寄存器会随机出现,也许每 5 次重启就会被识别。(在 Windows 下它总是被识别)
因此,花 17 美元立即购买一张新卡会更好。
我发布此信息是为了让其他人在购买此卡时能够看到。