[ ... ]On Tuesday 10 Jun 2003 12:52 pm, Toralf Lund wrote: > > On Tuesday 10 Jun 2003 10:36 am, Toralf Lund wrote: > > > 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
I've tried several different configs; right now I have> > Does the IPC board have any limitations that you're not taking into > > account? > > Probably, I just can't think of what they are... > > > How did you set up the serial line parameters (speed, bits etc)? > > 9600 baud, cs8, one stop bit.
What parameters did you pass to stty?
% stty -F /dev/ttyS0 -a
speed 9600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread -clocal crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -ixon -ixoff
-iuclc -ixany imaxbel
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 echoke
[ ... ]
> > I'm assuming these settings are correct as I'm fairly sure the fist line > is received correctly. > > > Did you turn on RTS/CTS or Xon/Xoff flow control?
Ah. I see. Good idea. Maybe I'll try that.> > > Have you tried using a proper comms program to send the file, such as > > kermit > > or minicom? > > Not possible, as the apps are not available on the receiving end. > (Although I have considered porting kermit.)
I didn't mean so that you could use the kermit transfer protocol, but purely so you could use it's built in serial port config options. I used a similar setup to upload/download config and logging data at one point.
I may not be testing a lot more on this setup right now, though, as we haven't yet decided whether or not we are going to use it.
- Toralf
-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list