[Info-vax] Using terminal lines - a long shot question

Lee Gleason lee.gleason at comcast.net
Sun Mar 8 18:46:10 EDT 2020


On 3/8/2020 4:52 PM, Michael Moroney wrote:

> Long ago, I did a project where I was trying to read data from a 9600 bps
> terminal line (set PASTHRU)
> with a Microvax II to feed data from a test system into an artificial
> intelligence system.  Since the data was semi-real time with no guaranteed
> terminators, my first attempt was to use 1 character QIOs.  It didn't work,
> the Microvax could not process ~960 QIOs per second. I struggled with how to
> do this for quite some time, and finally did something like the following:
> 
> 0. Set TYPAHDSIZ to be very large (or use a large ALTYPAHD, I forget)
> 1. Issue a 1 character QIO read, no timeout.
> 2. When this completes, process character and check for # of characters in
>     the typeahead buffer.
> 3. If this is 0, go to step 1.
> 4. Read and process that many characters, with 0 timeout on the QIO read.
> 5. Go to step 2.
> 

   Ah, an approach somewhat like that was at the core of Jamie's post. 
He had some more details and cases he described, and he used sense mode 
to see how many chars were in the typeahead buffer before he did a read 
at all, and then picked a read method,  but this won't be a bad start 
for me. Thanks for the info.

--
Lee K. Gleason N5ZMR
Control-G Consultants
lee.gleason at comcast.net



More information about the Info-vax mailing list