Re: Serial Link Communication

New Message Reply Date view Thread view Subject view Author view

Philip Nemec (nemec++at++sgi.com)
Tue, 6 Jan 1998 11:16:31 -0800


I've set up serial reads to be non-blocking and to read as many characters are
available (you already read the same way I do).

I used open(..., O_RDWR);

new_termio.c_cc[VMIN] = 0;
new_termio.c_cc[VTIME] = 20;

block = 1;
ioctl(wmwarriorFP, FIONBIO, &block);

And a question for you - what transfer protocol are you using on the PC? Most
PC modem programs use different things like ZMODEM which do various encoding on
the files rather than send them raw - sending raw characters to modems can
cause unexpected side effects (certain strings in the binary are also modem
control codes) - and usually they send bookkeeping info as well. Many of the
protocols also expect some response from the receiver before continuing... My
guess is that's what you are seeing - and the actual file never starts to be
sent...
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:31 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.