I'm trying to transfer an ASCII file ("S-record" format) across a serial link from a Red Hat system to an IPC board. If I do
cat <file> > /dev/ttyS0
(with connection at first serial port) it seems like the transfer gets stuck after the 1st line. If I echo the file one line at a time with a small delay between the lines, however, the transfer is successful. E.g.
cat <file> | while read line ; do echo $line > /dev/ttyS0; usleep 10000; done
works just fine. Can anyone explain this? Is there any way I can set "stty" parameters or similar so that the direct cat would work? I've experimented a bit with the "newline" and "delay" settings, but it didn't help a lot...


--
- Toralf


-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to