Operating System - HP-UX
1833762 Members
2162 Online
110063 Solutions
New Discussion

RJ45 to DB25 (port module to device)

 
Jun Zhang_4
Regular Advisor

RJ45 to DB25 (port module to device)

The port module (PCI Mux card) RJ45 jack go to a dumb terminal, which has DB25 connector.
I made a 3 wire connection like

RJ45 DB25
RX TX
TX RX
GN GN

Got login prompt, logged in, saw copy right message, but stucked at somewhere before the shell prompt. At this point, nothing I typed will be echoed on the screen, Enter will get a newline.
The running getty line is
/usr/sbin/getty -h tty2a3 19200
which will be hand over to ksh once logged in.
Terminal is a Wyse 60.

Jun
Food lover
7 REPLIES 7
Jun Zhang_4
Regular Advisor

Re: RJ45 to DB25 (port module to device)

Oh, it's the gettydefs. No more questions

Jun
Food lover
Jun Zhang_4
Regular Advisor

Re: RJ45 to DB25 (port module to device)

I thought I've got enough experience, but not really, the problem won't go away modified the gettydefs entry to have 8N1, baud 19200 ( same set at the terminal ).
Please help.

Jun
Food lover
Jun Zhang_4
Regular Advisor

Re: RJ45 to DB25 (port module to device)

Another piece of info,

# stty -a < /dev/tty2a3
speed 19200 baud; line = 0;
rows = 0; columns = 0
min = 1; time = 0;
intr = DEL; quit = ^\; erase = #; kill = @
eof = ^A; eol = ^@; eol2 ; swtch
stop = ^S; start = ^Q; susp ; dsusp
werase ; lnext
-parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts
-ignbrk -brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon -ixany -ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon -iexten -xcase echo -echoe echok -echonl -noflsh
-echoctl -echoprt -echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop tab3
Food lover
A. Clay Stephenson
Acclaimed Contributor

Re: RJ45 to DB25 (port module to device)

This document will give you the correct cabling for the special 10-pin RJ45 to DB-25 terminal connection. HP makes a special adapter to go from the 10-pin RJ-45 to a DB25. It's listed in this manual as well. (that DB25 is non-standard as well). The problem is that HP is the only source that I have found for these 10-pin RJ45 cables that are needed when you need full hardware handshaking. You can probably get by with less by tieing a few things like DTR to another pin.
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/5966-8703/5966-8703_top.html&con=/hpux/onlinedocs/5966-8703/00/00/1-con.html&toc=/hpux/onlinedocs/5966-8703/00/00/1-toc.html&searchterms=5966-8703&queryid=20040311-095540
If it ain't broke, I can fix that.
Jun Zhang_4
Regular Advisor

Re: RJ45 to DB25 (port module to device)

Appreciate your reply.
Yes, I made the cable converter based on that doc. As explained in the doc, the port module to device cables are not supplied by HP, and need to be made by customer.
The same (so far as I can recall) configure worked for Wyse 50 terminal.
The 3 wire connection should work for directly connected device, which was mentioned also in the doc.
Could there be anything another than the physical connection?

Jun
Food lover
A. Clay Stephenson
Acclaimed Contributor

Re: RJ45 to DB25 (port module to device)

I think I know what is happening. Remember that there are two sets of stty flags associated with a gettydef entry. Man gettydefs for details. The initial-flags which are used before login and the final which are applied after login. I think you are hanging when the final-flags go into effect. You probably need a better cable that deals with DTR,CD,etc. OR another gettydef entry.
If it ain't broke, I can fix that.
Jun Zhang_4
Regular Advisor

Re: RJ45 to DB25 (port module to device)

Finally I found it's something in the .profile, but don't exactly which line, that caused the problem. After renaming .profile to dot.profile, login is fine.

Jun
Food lover