| Hi Doug,
I have just tried to set up the same thing as you wanted on a
DECstation 5000/200 and it worked for me.
Here is what I did after looping tty00 and tty01 ports on back of system
box.
1) Edit /etc/ttys and make sure that the off flag is set for tty00
and tty01
2) kill -1 1 to clear down gettys etc.
3) Edit cm with cm -e
4) create system hard01 (type direct speed 9600 device /dev/tty01)
selected Icon to use and scan profile.
5) Verify database and exit
6) cm_startup.
7) cm -m hard01 worked.
So that bit is ok.
I then turned the /dev/tty00 back on by editing /etc/ttys and kill -1 1.
I then did cm -c hard01 from shell and I got a connection. The looped back
connection gave me the login prompt for the machine.
All well and good.
I then tried to use the csp program I sent you.
1) Turn off /dev/tty00 in /etc/ttys and kill -1 1.
2) Use the csp program to send data to the /dev/tty00 as follows:
o Set the port up (csp does not do this for you)
stty 9600 pass8 > /dev/tty00
o Create the lock file so csp will loop.
touch csp.lk
o Send data with csp.
csp -s 279.script -t tty00 -r 20
This will read blocks of the file 279.script output them to /dev/tty00
and sleep random numbers of seconds up to 20, between data blocks.
I then did cm -m hard01 and I see the blocks of data coming out on the line.
I did not set up any event filters for this experiment.
Here is the ascii dump of the system record for the hard01 system.
ADD_SYSTEM:
NAME: hard01
INFO:
ALIAS:
CONNECTION_TYPE: DIRECT
TERMINAL_DEVICE: /dev/tty01
TERMINAL_SPEED: 9600
SCAN_NAME: UNIX System V
ICON_FILE: DECsystem_5100.ICON
LOG_DATA: Y
LOG_DIRECTORY: /var/cm/logs/
ENABLED: Y
END:
Here is the system status record:
POLYCENTER Console Manager Summary
hard01
System ............: hard01 Enabled: Yes Line status: OK
In use by .........: -
Parent pid ........: 22818 System pid: 22819 Uptime: 0 00:26:48
Connection type....: Direct
Terminal ..........: /dev/tty01 (vt200) secure: N Getty: /etc/getty 8bit.9600
Log file ..........: /var/cm/logs/CM_hard01.LOG
Logging device ....: 45.73% Full, Warning at 80.00%, Archive at 95.00%
Archive location ..: /var/cm/archive/ (84.98% Full)
Last Archive ......: None performed
Scan Profile ......: UNIX System V
Lines of data .....: 1.7K Bytes: 48.3K
Event total .......: 62
Crit: 4 Maj: 23 Min: 34 Warn: 1 Clr: 0 Ind: 0
Hope all this helps. Give me a ring if you still have problems.
Cheers Simon....
|
| Got it! It now works.
Thanks for your p[atience and fine instructions, Simon. Next time you're in
Littleton I'll buy you a drink!
The following things helped:
- Setting the ports to 'off' /etc/ttys
- getting the magic incantation to tell the terminal to strip 8-bit
(in case you can't tell, I'm not what one would consider a 'UNIX
person... ;^)
BTW: I found the scan files soon after I entered the base note. Don't know
what went wrong with the installation... It didn't have that problem with the
EFT2 kit... Oh well.
The script works fine, hopefully I'll have some events and action routines
sending events to MCC before the day is out!
thanks again!
/doug
|