I got a brain smashing problem with Fedora 16 and my serial port.
I use the serial to monitor an STB on which I'm developping. The STB runs on Linux and when booted, I launch the program I'm working on through the serial interface.
Now, my program outputs lots of traces when I'm debugging, and I get loads of buffer overrun errors in dmesg.
This makes debugging the application a mess, because the serial output gets unreadable.
So, what's bothering me is that when I was running on Fedora 15, there was no buffer overrun at all!
Some more details on my setup:
- Fedora Core 16 under Cinnamon / gnome-terminal for the serial. Uname:
3.2.6-3.fc16.x86_64 - to connect the serial port, I use this command:
screen -R -d -t "Serial" /dev/ttyS0 115200
Any idea of how I could fix that?
(some more details:)
$ cat /proc/tty/driver/serial
serinfo:1.0 driver revision:
0: uart:16550A port:000003F8 irq:4 tx:3395 rx:11899157 fe:6 brk:4 oe:3496 RTS|DTR
### ^^^^^^^
### overflow errors
1: uart:16550A port:0000EC98 irq:17 tx:32 rx:0 CTS|DSR|CD
2: uart:unknown port:000003E8 irq:4
3: uart:unknown port:000002E8 irq:3
Typical dmegs output:
[370425.080452] ttyS0: 24 input overrun(s)
[370426.092382] ttyS0: 30 input overrun(s)
[370427.109291] ttyS0: 36 input overrun(s)
[370428.173344] ttyS0: 28 input overrun(s)
[370429.583198] ttyS0: 26 input overrun(s)
[370430.638700] ttyS0: 32 input overrun(s)
:( :( :(
Output of sudo setserial -v -a -g /dev/ttyS0:
/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 low_latency
screenallows you to set thecrtsctsflag, so I'm not sure whether or not this might work. You could use something likekermitorminicomor something that does have explicit support for setting the hardware flow-control flag... – larsks Mar 2 '12 at 21:17powertopto see what was making that many interruptions, and I enabled whatever was enablable, but still no luck. I'll try with another WM (I use Cinnamon.. maybe it's him?) and without any other program running just to be sure. But this issue is absolutely mind boggling... – Gui13 Mar 5 '12 at 19:52