Re: write() only sends 16 chars to serial port?



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

.



Relevant Pages

  • Re: how to extract +12V from RS232
    ... In article, Paul Burke ... >Grant Edwards wrote: ... >And even so, given the limited current available from the port, he'd be ... Tim Mitchell ...
    (comp.arch.embedded)
  • Re: read stdout/stderr without blocking
    ... Grant Edwards wrote: ... that you should read 1024 characters? ... >>What will happen when output is shorter? ... Prev by Date: ...
    (comp.lang.python)
  • Re: how to extract +12V from RS232
    ... Grant Edwards wrote: ... And even so, given the limited current available from the port, he'd be ... better off using say a TC55 that doesn't gobble so much in quiescent ... Paul Burke ...
    (comp.arch.embedded)
  • Re: How to check if a string "is" an int?
    ... Grant Edwards wrote: ... the isdigit method tests whether all characters are digits. ... > But that is "obviously" wrong, since '15' is not a digit. ...
    (comp.lang.python)
  • Re: Problem with telnetlib dropping receive bytes.
    ... Grant Edwards writes: ... I can't find anywhere in RFC 854 where it says to ... and it's breaking my program. ... Telnet requires that ALL 7 bit characters can be ...
    (comp.lang.python)