Re: write() only sends 16 chars to serial port?
- From: gus.reid@xxxxxxxxx
- Date: Wed, 19 Sep 2007 01:46:09 -0700
Thanks very much for the help. I'm on UK time, so it took me a while
before I could try your suggestions.
Grant Edwards wrote:
You realize that's way out of date? The current version is here:
http://www.easysw.com/~mike/serial/serial.html
Oh yeah, thanks.
Forget about C programming for now. Check the IRQ setting with
setserial:
$ setserial /dev/ttyS0
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
Yup, mine's the same, and matches the settings I could find in the
BIOS.
$ stty -F /dev/ttyS0 9600 clocal -crtscts -ixon -ixoff
$ echo 'hi there, this is a string longer than 16 bytes' >/dev/ttyS0
Does everything come out the port like it should?
Yes, this works fine. I can send more than 16 characters using this
method.
-Gus
.
- Prev by Date: Re: Configuration file parser
- Next by Date: priority queues (was: Configuration file parser)
- Previous by thread: Configuration file parser
- Next by thread: Re: write() only sends 16 chars to serial port?
- Index(es):
Relevant Pages
|