a simple unix/device driver question . . .

James Cummings james at dlss2.UUCP
Mon Sep 10 23:52:41 AEST 1990


In article <1990Sep6.171808.9576 at oracle.com> cmcquirt at oracle.uucp (Clifford McQuirter) writes:
>HELP!
>
>	***********                     ***********
>        *         *printer port         *  UNIX   *
>        *  IBM    *-->-->-->-->-->-->-->*  IBM    *
>        *  SERIES *                     *  MODEL  *
>        *  ONE    *                     *  80(PS2)*
>        ***********                     ***********
>
>An IBM Series One outputs data to its serial printer port asynchronously. I need
>to somehow capture this data (in a buffer?) on the Model 80, and process it 
>(as a file?).
>

	Assuming you have a C compiler on the PS2 and can write a C program;
I would suggest attaching the printer port of the Series 1 machine to a 
tty port of the PS2; then write a C program to open that tty on the PS2 to
read input from that port and write the same to a file of your choosing.

	I've done this with a 3B2/700 and a protocol converter.  It works
rather nicely, and I've run it for years without trouble.  The one that I
use constantly reads from the tty port with a "timed" pause to move the 
original input file to a working location file.  This keeps me from having
a huge single file.  You may want to follow a similar theme or only run
the receiving program when you know there will be data to receive.

	If you have problems getting started, I could probably be persuaded
to send you a copy of the code I wrote.  I won't waste the bandwith here,
since this should be fairly straight forward.


-- 
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
|Disclaimer:                      | James Cummings                           |
|  You can't blame me!            |   UUCP:                                  |
|  I'm ignorant!                  |    ..swblat!{texbell!texnet..            |
|+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+|              swgate!dlss1..}!dlss2!james |
|Send flames to:                  |   NET:                                   |
|  sowc at devnull.com               |      jc at smunews                          |
|                                 |                                          |
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+



More information about the Comp.unix.questions mailing list