# Portserver prints Trash

**URL:** <https://forums.digi.com/t/portserver-prints-trash/7202>\
**Category:** Realport\
**Created:** [March 10, 2006, 5:22pm UTC](https://forums.digi.com/t/portserver-prints-trash/7202 "2006-03-10T17:22:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkotschi](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mkotschi](https://forums.digi.com/u/mkotschi)\
**Post date:** [March 10, 2006, 5:22pm UTC](https://forums.digi.com/t/portserver-prints-trash/7202/1 "2006-03-10T17:22:23Z")

</div>

Hello,

I am having a problem with a Portserver 8. I have installed realport software dgrp-1.9-4 on a Debian 3.1 (Sarge) machine. Whenever I try to print anything to it all that comes out is trash. The printers are brand new Okidata Microline 320 Turbos. The printers are configured the same as other printers connected to other Digi portservers on the network.  
Any suggestions on where to begin looking?

Also kernel is 2.6.8.

Thanks

–michael kotschi

---

<div class="post-metadata">

**Author:** ![userid0](https://avatars.discourse-cdn.com/v4/letter/u/f6c823/32.png) [@userid0](https://forums.digi.com/u/userid0)\
**Post date:** [March 10, 2006, 6:31pm UTC](https://forums.digi.com/t/portserver-prints-trash/7202/2 "2006-03-10T18:31:04Z")

</div>

Typically, garbage points to a mis-match in the settings between the spooler/port and the attached printer. Confirm the “ditty-rp -a ttyx##” results match the settings applied on the Okidata printer with regards to baud rate, parity, flow control, etc…

Are you able to cat data directly to the printer and have it print properly?

cat /etc/inittab \> /dev/ttyx##

Also, confirm the port on the PortServer is configured for use with RealPort. I’m not sure what PortServer model you have, however “prn” works on all models. Telnet to the PortServer and login as root:

#\> set port dev=prn range=port#  
#\> kill tty=(port#)

If there is still a problem, you should contact Digi Tech. Support to pursue this further:

[http://www.digi.com/support/eservice/eservicelogin.jsp](http://www.digi.com/support/eservice/eservicelogin.jsp)

---

<div class="post-metadata">

**Author:** ![mkotschi](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mkotschi](https://forums.digi.com/u/mkotschi)\
**Post date:** [March 16, 2006, 8:33pm UTC](https://forums.digi.com/t/portserver-prints-trash/7202/3 "2006-03-16T20:33:55Z")

</div>

Sorry for not replying sooner the equipment is at a remote customer site, I can’t get out there as often as I’d like.

ditty-rp -a ttyst01

gives:

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

The printers are Okidata microline 320 turbo models and are set to 9600 baud, 8 bits Data and flow control of x-on/x-off. Correct me if I am wrong, but the above  
ditty command confirms these settings for the portserver.

I cannot cat data to the device, it comes out trash.  
I ran my tests again after setting the ports as described in the above post.

this is what pops up when doing #\> set config

PortServer Version 3.5.5 May 15, 2001

Copyright 1990-2001 DigiBoard. All Rights Reserved.

myname : termserver domain : DOMAIN

ip : 192.168.2.200 submask : 255.255.0.0

gateway : 192.168.2.1 nameserv : 192.168.2.1

ether : 00:40:9d:00:36:e7

boothost : 65.xx.xx.xx bootfile : 40001080\_n.bin

realport : 771

```
          0 corrected errors in EEPROM

```

Sticker on the bottom of the portserver says:

Portserver/8 RJ45 Domestic  
P/N: (1/P)50000254  
S/N: (S)A3503569

Could the portserver just be toast?

---

<div class="post-metadata">

**Author:** ![userid0](https://avatars.discourse-cdn.com/v4/letter/u/f6c823/32.png) [@userid0](https://forums.digi.com/u/userid0)\
**Post date:** [March 16, 2006, 8:40pm UTC](https://forums.digi.com/t/portserver-prints-trash/7202/4 "2006-03-16T20:40:00Z")

</div>

Can’t tell if the unit is toast. Here are a few things to try/confirm:

The ditty-rp results show -ixoff, you will want to activate this setting:

ditty-rp ixoff ttyx##

On the Okidata printers, confirm the following settings:

Protocol: XON/XOFF  
Ready/Busy: SSD-  
DSR: Invalid

Telnet to the PortServer, login as root and confirm the port device type is set to “prn”:

#\> set port range=(port#)

If not:

#\> set port range=(port#) dev=prn

The unit should then be rebooted, if the setting is changed:

#\> boot action=reset

If garbage continues to print, you may want to try another port to see if the port has gone bad.
