드라이버 구성 문제인 것 같습니다. winXP(이중 부팅)에서는 작동합니다.인텔 드라이버. 다른 컴퓨터의 직렬 포트를 통해 디버깅 중인데 잘 작동합니다.
PC는 i5 dell Optiplex 790이며 mint 17.1을 실행하며 정상적으로 작동합니다. IT에는 마더보드의 PCI를 통한 직렬 포트가 있는데 Linux가 두 개의 COM 포트를 감지하고 있습니까? 두 가지 드라이버(PnP 및 PCI)가 있습니다.
"screen /ttyS0 115200"을 통해 TTY를 할 수 있고 작동하며 입력하고 재생 등을 볼 수 있지만 무엇이든 보내면 몇 바이트를 보내고 중지됩니다.
리눅스에 com1이 올바르게 설정되어 있지 않은 것 같나요? 구글링을 해봤지만 비슷한 것을 찾을 수 없습니다.
도와주셔서 감사합니다. 벤 건배.
아래에서 새로 부팅하여 얻은 명령 출력을 참조하세요.WINXP 설정: 전송 속도: 115200 패리티: 없음 데이터 비트: 8 정지 비트: 1 흐름 제어: 없음 입출력 범위: 03F8-03FF 중단 요청: 04
리눅스 설정: stty -F /dev/ttyS0 115200 clocal cread cs8 -cstopb -parenb
seterial /dev/ttyS0 uart 16550A 포트 0x03f8 irq 4stty -a -F /dev/ttyS0 속도 115200 보드, 행 0, 행 = 0; intr = ^C;exit=^\;삭제=^? ; kill = ^U; eof = ^D; 가수 2 =; 시작 = ^Q; 중지 = ^Z; verase = ^W; 다음 = ^V; 플러시 = ^O; 시간 = 0; -parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8 opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl 에코
dmesg | egrep -i 'serial|ttys' [ 0.904757] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled [ 0.925235] 00:07: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A [ 0.946748] 0000:00:16.3: ttyS4 at I/O 0x30e0 (irq = 17, base_baud = 115200) is a 16550A [ 0.964931] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 0.964935] usb usb1: SerialNumber: 0000:00:1a.0 [ 0.980919] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 0.980923] usb usb2: SerialNumber: 0000:00:1d.0 [ 1.409138] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 1.653064] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 2.022446] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 2.188610] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 2.355459] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 2.355467] usb 2-1.4: SerialNumber: 00e04c000001 [ 458.078790] usb 2-1.7: New USB device strings: Mfr=3, Product=4, SerialNumber=2 [ 458.078799] usb 2-1.7: SerialNumber: 300000000002
cat /proc/tty/driver/serial serinfo:1.0 driver revision: 0: uart:16550A port:000003F8 irq:4 tx:32037 rx:12156 1: uart:unknown port:000002F8 irq:3 2: uart:unknown port:000003E8 irq:4 3: uart:unknown port:000002E8 irq:3 4: uart:16550A port:000030E0 irq:17 tx:25 rx:0 RTS|CTS|DTR|DSR|CD 5: uart:unknown port:00000000 irq:0 6: uart:unknown port:00000000 irq:0 7: uart:unknown port:00000000 irq:0 8: uart:unknown port:00000000 irq:0 9: uart:unknown port:00000000 irq:0 10: uart:unknown port:00000000 irq:0
setserial /dev/ttyS0 -a /dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4 Baud_base: 115200, close_delay: 50, divisor: 0 closing_wait: 3000 Flags: spd_normal skip_test
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: 16550A, Port: 0x30e0, IRQ: 17 /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
cat /proc/tty/drivers /dev/tty /dev/tty 5 0 system:/dev/tty /dev/console /dev/console 5 1 system:console /dev/ptmx /dev/ptmx 5 2 system /dev/vc/0 /dev/vc/0 4 0 system:vtmaster rfcomm /dev/rfcomm 216 0-255 serial ttyprintk /dev/ttyprintk 5 3 console serial /dev/ttyS 4 64-111 serial pty_slave /dev/pts 136 0-1048575 pty:slave pty_master /dev/ptm 128 0-1048575 pty:master unknown /dev/tty 4 1-63 console
cat /proc/interrupts CPU0 CPU1 CPU2 CPU3
0: 15 0 0 0 IO-APIC-edge timer 1: 3 0 0 0 IO-APIC-edge i8042 4: 1731 0 0 0 IO-APIC-edge
8: 1 0 0 0 IO-APIC-edge rtc0 9: 3 0 0 0 IO-APIC-fasteoi acpi 12: 4 0 0 0 IO-APIC-edge i8042 16: 33 0 0 0 IO-APIC-fasteoi ehci_hcd:usb1 17: 2449637 0 0 0 IO-APIC-fasteoi ehci_hcd:usb2 40: 10207 0 0 44417 PCI-MSI-edge ahci 41: 2165 0 0 0 PCI-MSI-edge eth0 42: 383690 0 0 0 PCI-MSI-edge i915 43: 24 0 0 0 PCI-MSI-edge mei_me 44: 39322 0 0 0 PCI-MSI-edge snd_hda_intel NMI: 24 19 16 17 Non-maskable interrupts LOC: 387655 267084 239854 255364 Local timer interrupts SPU: 0 0 0 0 Spurious interrupts PMI: 24 19 16 17 Performance monitoring interrupts IWI: 4561 7874 4482 4784 IRQ work interrupts RTR: 2 0 0 0 APIC ICR read retries RES: 61702 57561 22920 28286 Rescheduling interrupts CAL: 510 477 638 537 Function call interrupts TLB: 6108 17079 8539 6852 TLB shootdowns TRM: 0 0 0 0 Thermal event interrupts THR: 0 0 0 0 Threshold APIC interrupts MCE: 0 0 0 0 Machine check exceptions MCP: 16 16 16 16 Machine check polls ERR: 0 MIS: 000:16.3 Serial controller: Intel Corporation 6 Series/C200 Series Chipset Family KT Controller (rev 04) (prog-if 02 [16550]) Subsystem: Dell Device 04ad Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR-
lspci -vs 00:16.3 00:16.3 Serial controller: Intel Corporation 6 Series/C200 Series Chipset Family KT Controller (rev 04) (prog-if 02 [16550]) Subsystem: Dell Device 04ad Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 17 I/O ports at 30e0 [size=8] Memory at e1a90000 (32-bit, non-prefetchable) [size=4K] Capabilities: [c8] Power Management version 3 Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit+ Kernel driver in use: serial
------------------ UPDATE 1 ---------------------- MINT LINUX 17.3 differences - not much
cat /proc/tty/driver/serial serinfo:1.0 driver revision: 0: uart:16550A port:000003F8 irq:4 tx:0 rx:0 1: uart:unknown port:000002F8 irq:3 2: uart:unknown port:000003E8 irq:4 3: uart:unknown port:000002E8 irq:3 4: uart:16550A port:000030E0 irq:17 tx:19 rx:0 CTS|DSR|CD
cat /proc/interrupts CPU0 CPU1 CPU2 CPU3
0: 15 0 0 0 IO-APIC-edge timer 1: 3 0 0 0 IO-APIC-edge i8042 4: 3 0 0 0 IO-APIC-edge
8: 1 0 0 0 IO-APIC-edge rtc0 9: 3 0 0 0 IO-APIC-fasteoi acpi 12: 4 0 0 0 IO-APIC-edge i8042 16: 29 0 0 0 IO-APIC 16-fasteoi ehci_hcd:usb1 17: 90753 0 0 0 IO-APIC 17-fasteoi ehci_hcd:usb2 24: 4983 0 0 5263 PCI-MSI-edge 0000:00:1f.2 25: 566 0 0 0 PCI-MSI-edge eth0 26: 28220 0 0 0 PCI-MSI-edge i915 27: 25 0 0 0 PCI-MSI-edge mei_me 28: 450 0 0 0 PCI-MSI-edge snd_hda_intel NMI: 6 6 5 5 Non-maskable interrupts LOC: 101643 61501 60543 57145 Local timer interrupts SPU: 0 0 0 0 Spurious interrupts PMI: 6 6 5 5 Performance monitoring interrupts IWI: 0 0 0 0 IRQ work interrupts RTR: 2 0 0 0 APIC ICR read retries RES: 6635 5255 3448 3592 Rescheduling interrupts CAL: 699 646 553 615 Function call interrupts TLB: 3859 4185 2959 3659 TLB shootdowns TRM: 0 0 0 0 Thermal event interrupts THR: 0 0 0 0 Threshold APIC interrupts MCE: 0 0 0 0 Machine check exceptions MCP: 6 6 6 6 Machine check polls HYP: 0 0 0 0 Hypervisor callback interrupts ERR: 0 MIS: 0lspci -vs 00:16.3 00:16.3 Serial controller: Intel Corporation 6 Series/C200 Series Chipset Family KT Controller (rev 04) (prog-if 02 [16550]) Subsystem: Dell Device 04ad Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 17 I/O ports at 30e0 [size=8] Memory at e1a90000 (32-bit, non-prefetchable) [size=4K] Capabilities: [c8] Power Management version 3 Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit+ Kernel driver in use: serial ll /sys/class/tty/ttyS[012345] lrwxrwxrwx 1 root root 0 Jan 14 17:49 /sys/class/tty/ttyS0 -> ../../devices/pnp0/00:03/tty/ttyS0/ lrwxrwxrwx 1 root root 0 Jan 14 17:49 /sys/class/tty/ttyS1 -> ../../devices/platform/serial8250/tty/ttyS1/ lrwxrwxrwx 1 root root 0 Jan 14 17:49 /sys/class/tty/ttyS2 -> ../../devices/platform/serial8250/tty/ttyS2/ lrwxrwxrwx 1 root root 0 Jan 14 17:49 /sys/class/tty/ttyS3 -> ../../devices/platform/serial8250/tty/ttyS3/ lrwxrwxrwx 1 root root 0 Jan 14 17:49 /sys/class/tty/ttyS4 -> ../../devices/pci0000:00/0000:00:16.3/tty/ttyS4/ lrwxrwxrwx 1 root root 0 Jan 14 17:49 /sys/class/tty/ttyS5 -> ../../devices/platform/serial8250/tty/ttyS5/
ll /sys/class/tty/ttyS[012345]/device/driver lrwxrwxrwx 1 root root 0 Jan 14 17:53 /sys/class/tty/ttyS0/device/driver -> ../../../bus/pnp/drivers/serial/ lrwxrwxrwx 1 root root 0 Jan 14 17:53 /sys/class/tty/ttyS1/device/driver -> ../../../bus/platform/drivers/serial8250/ lrwxrwxrwx 1 root root 0 Jan 14 17:53 /sys/class/tty/ttyS2/device/driver -> ../../../bus/platform/drivers/serial8250/ lrwxrwxrwx 1 root root 0 Jan 14 17:53 /sys/class/tty/ttyS3/device/driver -> ../../../bus/platform/drivers/serial8250/ lrwxrwxrwx 1 root root 0 Jan 14 17:53 /sys/class/tty/ttyS4/device/driver -> ../../../bus/pci/drivers/serial/ lrwxrwxrwx 1 root root 0 Jan 14 17:53 /sys/class/tty/ttyS5/device/driver -> ../../../bus/platform/drivers/serial8250/
enter code here