[comp.unix.questions] Unix I/O question.

RLWALD@pucc.Princeton.EDU (Robert Wald) (04/21/87)

running Ultrix 1.2. We were using software called Midiplay, which worked
fine except when I started to look at it, I noticed that all of the
transfers were occuring one way. That is, it was writing to the
box through a 19.2K RS-232 line, but not receiving. This is fine for
composing on the computer and controlling synthesizers (although it takes
forever to set up because it does not handshake and just waits a second between
each byte), but I wanted to fully control the Idal box, especially so that
I can read in midi data produced on a keyboard, and edit it on the computer.
 
By using an ioctl call, and setting RAW+TANDEM (tandem for Xon/Xoff control)
in the parameter block for the tty, I was able to get a working system in
some respects. It works fine, except when I begin to play at a fast rate
on the keyboard. Not especially fast , mind you, but at some speed increase
I begin to get improper data coming in. When I play it back it is not
the same.
 
So this is my problem. I get no errors, but the data is not right. It is
not completely off, but it is not usable. I know that the Idal box is getting
the midi data correctly, because it runs correctly stand-alone. And I can
play a file through the interface as fast as I like. So it is either a
problem with the Idal sending data, in which case I cannot fix it, or
the Vax receiving, in which case I hope to write some software to
circumvent it. SO can anyone see any problems on the Vax end, (or on the
Idal end if you have used the box)? What could I do to ensure reliable
communications?
 
  Thanks for any help. Please respond by E-MAIL, as our news is almost
completely kaput for the indefinite future. E-MAIL isn't great either, so
if you don't get a thank-you, I didn't get it. I'm also interested in
talking to anybody who has worked with the Idal.
 
-Rob Wald                Bitnet: RLWALD@PUCC.BITNET
   "BLAM! BLAM!,         Uucp: {ihnp4|allegra}!psuvax1!PUCC.BITNET!RLWALD
    Avon calling."       Arpa: RLWALD@PUCC.Princeton.Edu
"They're unfriendly,which is fortunate,really. They'd be difficult to like"-Avon
"Its Sulphuric Acid, you're soaking in it" -Dark Madge