Talking to a "lyon lamb minivas":

1. Data cabling -

   Need: - 9 pin male (Iris) to 25 pin female (MiniVas) RS232 
		- communication between Iris & MiniVas
        - 9 pin RS422 
		- communication between MiniVas & video machine  

   You will probably have to custom build the 25 pin to 9 pin cable.

   Wiring: (to be supplied)


2: Video cabling -

   Refer to MiniVas manual for the particular video machine you are using.

   Make sure the video machine has reference video in, proper termination, etc.    Video sync and slaving concerns must be handled. This info should be dealt 
   with in MiniVas manual.

   It is important that the MiniVas has good reference video. You might want
   to put something other than the Iris into it to get it happy and start
   your testing.
   If the MiniVas is not happy with its video the display says "HELP".


3: Check your RS232 connection with cu. Something like:

     cu -l ttyd2 -s 9600	/* must have /usr/lib/Devices setup properly */
     I 				/* intialize the interface 
     ?				/* query the lyon lamb */
     SP (for example)   	/* lyon lamb should respond with some setting */

     MiniVas response of SP means it thinks it is talking to a Betacam SP, SF
     means some sort of Sony 1", etc. It is VERY important that you tell the 
     MiniVas the correct machine. As in the manual, the command would be VSP,
     VSF, whatever...Verify by sending ? again. Note that these commands are
     sent directly to the MiniVas. If you mess up in typing, send another I to 
     re-initialize the interface.

   If you don't get a response check wiring and stty settings with cu running
   with the command:
       stty -a </dev/ttyd2
  My stty settings were:
    speed 9600 baud; line = 1; 
    intr = DEL; quit = ^\; erase = ^H; kill = ^U; eof = ^A; eol = ^@; swtch = ^@
    lnext = ^V; werase = ^W; rprnt = ^R; flush = ^O; stop = ^S; start = ^Q
    -parenb -parodd cs8 -cstopb hupcl cread clocal -loblk -tostop 
    ignbrk -brkint ignpar -parmrk -inpck istrip -inlcr -igncr -icrnl -iuclc 
    ixon -ixany ixoff 
    -isig -icanon -xcase -echo -echoe -echok -echonl -noflsh 
    -opost -olcuc -onlcr -ocrnl -onocr -onlret -ofill -ofdel 
  Can be set with (but should be set by cu):
    #!/bin/sh
    ( stty 9600 -parenb -parodd cs8 -cstopb hupcl cread clocal -loblk -tostop ignbrk -brkint ignpar -parmrk -inpck istrip -inlcr -igncr -icrnl -iuclc ixon -ixany ixoff -isig -icanon -xcase -echo -echoe -echok -echonl -noflsh -opost -olcuc -onlcr -ocrnl -onocr -onlret -ofill -ofdel </dev/ttyd2 ; sleep 10000 ) >/dev/ttyd2

4: Might check the simple commands play and halt. I believe play is "+"
   and halt is " " (spacebar).

5: Now put the control track (VIFC) on the tape for the MiniVas to read.
   Send s:  Can lay colour bars for a minute then switch to black while 
   laying control track.
   MiniVas display will at first show "LE" for leader, then displays the frame 
   code numbers it is writing.  After this is done you should be able to do 
   the seek commands.

   (If everything appears to be ok, but machine won't seek reliably, you may
   have to alter settings on the machine's timebase correcter. In the case 
   of a Betacam SP, this means opening the machine and flipping dipswitches
   on the TBC. You want the framecode to be written to line 17 of the video
   frame, but I don't remember the switch settings for this.)

6: Now without cu running, compile and try recinit.  (Source supplied)
   And try rec. (Source supplied)
   
   recinit sets the initial "in" point for recording and specifies frame
   increment. (ie. 1's, 2's.) The frame increment can be overridden using rec.

   rec takes an argument specifying how many frames to record, and performs
   the record starting at the framecode # set by recinit. rec is called as an 
   embedded command in "myfd", as the following script demonstrates.

7: Recording pictures using "fd":  The biggest problem here is that the "-n"
   option must be used with "fd".  Unfortunately the "-n" option puts the
   machine in ntsc mode at the beginning and takes it out of ntsc at the
   end.  Going out of ntsc mode during any recording is generally bad news
   for the minivas which will detect bad reference video and go out of
   record ready mode or hang.  I compiled my own "fd" without the 2 calls
   to setntsc and setvideo.  Then from a remote terminal I went into ntsc
   mode with setntsc and ran the following script.

    #!/bin/csh -f
    @ f = 1

    recinit 9200 1

    while ( $f <= 10 )
	myfd -n -s 0 -c "rec 1" Pic/$f.pic
	@ f += 1
    end

8: Recording camera views in action:
	rec -d unix
	set UNIXOPEN = recinit 9200 1
	set UNIXGO   = rec 1
	rec -f 1 10 -r
   I haven't actually done this with the minivas.  I do know that the
   help message if you do "rec -r" with UNIXOPEN set but not UNIXGO set
   is incorrect.

Hope this helps. Source for recinit and rec in this directory.
The code below while probably not the most elegant nor
tolerant of usage and MiniVas errors did run as it stands.
