Port Server II on new Linux box

We will be phasing out an old SCO box and replacing it with a new Linux system. Currently there are two Port Server II’s on the network that the SCO system uses, attached to these are serial printers and scaleheads (for reading weights off of scales). The Port Servers have been configured and working long before I got here, and unfortunately there’s no documention as to the configuration.

Currently I’m trying to print to one of the serial printers from this new Linux box. From things I’ve read on the internet so far I’ve had to install the kernel source, then the dgrp drivers. I ran the Digi RealPort Manager (GUI) and added one of the port servers, for an ID I use “ps”. under /dev I now have 32 ttypsxx devices.

Next I added teh printer and pointed it to /dev/ttps30, the port of one of the serial printers. If I try a test page I don’t get anything, if I do a “cat filename > /dev/ttyps30” the screen doesn’t seem to do anything and never returns to a command prompt.

The port servers are working with the old system so I’ve avoided logging into them and adjusting anything, and I’m hoping that isn’t required. Any thoughts on what I might be missing?

I’m pretty new to Linux/Unix, so if you need to know any versions or want the results of any commands just let me know.

Thanks,
Tony

Are you able to communicate with any of the ports using “ditty-rp -a ttyps##”?

You should try one of the base unit ports “ttyps00”.

If not, you should contact Digi Tech. Support to pursue troubleshooting:

Phone: (952) 912-3456
E-mail submission: http://www.digi.com/support/supportrequest.jsp

I believe so, if I type ditty-rp -a /dev/ttyps00 I get:

[root@LinuxTest tonyv]# ditty-rp -a /dev/ttyps00
onstr \033[5i offstr \033[4i term ansi
maxcps 100 maxchar 50 bufsize 100 edelay 100
-forcedcd -altpin -fastbaud (9600) -printer -rtstoggle
-rtspace -dtrpace -ctspace -dsrpace -dcdpace
DTR+ RTS+ CTS- CD- DSR- RI-
startc = 0x11 stopc = 0x13
-aixon astartc = 0x0 astopc = 0x0
speed 9600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^; erase = ^?; kill = ^U; eof = ^D; eol = ; eol2 = ; start = ^Q;
stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany
-imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke
[root@LinuxTest tonyv]#

However, if I type ditty-rp -a /dev/ttyps30 (there is no device on port 00, there is a serial printer on port 30), I get:

/dev/ttyps30: Resource temporarily unavailable

You will want to confirm there are no processes running on ttyps30:

fuser /dev/ttyps30

If there are, please kill them and try the ditty-rp command again.

Also, confirm that the port on the attached Xem module is configured properly for use with RealPort. Telnet to the PortServer II and login as root:

#> set port range=31

The “dev” setting needs to be set to “prn”, if it is not:

#> set port range=31 dev=prn

This would apply to all ports that will be accessed by the Linux host using the tty device.

The unit should be rebooted after this type of change:

#> b a=r

Also, confirm the auth table on the PortSever II unit has the ports available from the Linux host:

#> set auth

You should see:

Ind IPaddr Mask RealPort Login Unrestricted
1 0.0.0.0 0.0.0.0 oooooooo -------- oooooooo
oooooooo -------- oooooooo
oooooooo -------- oooooooo
oooooooo -------- oooooooo

If it still fails, confirm the SCO host is still not accessing these ports.

My linux box says that fuser doesn’t exist, however I ran it on the SCO box and there were 2 processes using that port. I killed both processes and did another ditty-rp -a /dev/ttyps30 and I now get:

[root@LinuxTest tonyv]# ditty-rp -a /dev/ttyps30
onstr \033[5i offstr \033[4i term ansi
maxcps 100 maxchar 50 bufsize 100 edelay 100
-forcedcd -altpin -fastbaud (9600) -printer -rtstoggle
-rtspace -dtrpace -ctspace -dsrpace -dcdpace
DTR+ RTS+ CTS+ CD+ DSR+ RI-
startc = 0x11 stopc = 0x13
-aixon astartc = 0x0 astopc = 0x0
speed 9600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^; erase = ^?; kill = ^U; eof = ^D; eol = ; eol2 = ; start = ^Q;
stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany
-imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke
[root@LinuxTest tonyv]#

I hesitate to make any changes on the port server itself only because I don’t want to inadvertantly disable it from the point of view of the SCO box.

Anyway, after killing the two processes I ran “cat printcap > ttyps30” and I got my print job. WOOHOO!

Thanks for your help. Now, to blow it away and reinstall from scratch and see if I can recreate this while getting screen shots of all the steps. :slight_smile: