Although I did not get anything back from the list, our call to SUN
support solved half of my problems.
The trick is to enable XON/XOFF flowcontrol on the serial port.
Unfortunately I'm still getting Problems with the 19200 bps connection.
Add to /etc/ttydefs
conttyH8hi:9600 -parenb cs8 ignpar opost onclr:9600 hupcl -clocal
-parenb ignpar c8 -istrip ixon ixanny ixoff crscts:conttyH8hi
Add to /etc/saf/zsmon/_pmtab (you can use pmadm, resp. the script
attached)
tty0:u:root:reserved:reserved:reserved:/dev/cua/1:b::/usr/bin/login::co
nttyH8hi:ldterm,ttcompat:login\: LLnL#dial in/out on serial port
But I'm still looking for a solution with the 19200 bps interface,
changing the serial definitinos in /etc/ttydefs did not help....
Original Question:
> we have a SUN 8port Serial Card (spif) in a SS20 running Sol 2.6.
>
> When plugging the cable in the multi-port card, the application
> (Marektlink contribution driver) is complaining about 'unexpected
> character received 74'. I allready got rid of ttymon, which was
> spewing out login messagse, but this problem persists.
>
> If I plug the same connection into ttyb, I do not get those problems.
>
> Does anybody know of differences in the handling between the two? I
> thought they both were identical serial devices.
>
> The settings are 9600 bps 8/N/1 on /dev/tty3 or /dev/ttyb
>
> TIA, I'll summarize,
>
> -daniel
> --
> Daniel Kluge / CTS-Engineer Direct : +41-1-215-4162
> TIBCO Inc. Phone : +41-1-215-4151
> Bahnhofstrasse 52 Fax : +41-1-215-4152
> CH-8001 Zurich E-Mail :
> danielk@tibco.com Switzerland Web
> : http://www.tibco.com
>
-- Daniel Kluge / CTS-Engineer Direct : +41-1-215-4162 TIBCO Inc. Phone : +41-1-215-4151 Bahnhofstrasse 52 Fax : +41-1-215-4152 CH-8001 Zurich E-Mail : danielk@tibco.com Switzerland Web : http://www.tibco.com
#!/bin/sh
# add_modem shell script. Must be run as root from bourne shell
# Change these parameters as needed for your particular needs.
#
# PARAMETER MEANING
# --------- -------
# PORT Port you want to set up. "a" or "b"
# TTYSPEED Speed setting, from /etc/ttydefs
# LOGINMSG The login message which will be displayed.
# -p zsmon PMTAG, name of this port monitor
# -s ttya SVCTAG, modem is on ttya. you may want ttyb
# -d /dev/term/$PORT Actual port device.
# -l contty5H Ttylabel, defined in /etc/ttydefs file. (speed
# setting. contty5H=19200 baud)
# -b Flag for bidirectional port use
# -S n Turn software carrier off (modem supplies
# hardware carrier detect signal)
# "dial in/out on serial port" This is a comment you'll see on pmadm -l
########################################################################
LOGINMSG="login: "
# set PORT = either a or b
PORT="0"
#----------------------------------------
# choose your speed setting. See /etc/ttydefs for more, or build your
# own from the examples in the rest of this article.
# contty5H = 19200bps, 7 bits even parity, as supplied by Sun
# conttyH = 9600bps, 7 bits even parity, as supplied by Sun
TTYSPEED="conttyH8ho"
#----------------------------------------
# change ownership of outgoing side of port to user uucp, group tty.
# change ownership of incoming side of port to user root, group tty.
chown uucp /dev/cua/$PORT; chgrp tty /dev/cua/$PORT
chown root /dev/term/$PORT; chgrp tty /dev/term/$PORT
#----------------------------------------
# Remove any existing port monitor on this port.
# You can ignore any error messages from this next command.
# If you see the message "Invalid request, ttya does not exist under zsmon",
# You may be trying to remove a port monitor which does not exist.
/usr/sbin/pmadm -r -p zsmon -s tty$PORT
#----------------------------------------
# Create the new port monitor
/usr/sbin/pmadm -a -p zsmon -s tty$PORT -i root \
-v `/usr/sbin/ttyadm -V` -fu -m "`/usr/sbin/ttyadm \
-p "$LOGINMSG" -d /dev/cua/$PORT -s /usr/bin/login -l $TTYSPEED -b \
-S n -m ldterm,ttcompat`" -y "dial in/out on serial port"
############ end of add_modem script ###################################
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:49 CDT