System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Serial ports of rx2600 / rp3440

 
SOLVED
Go to solution
Martin Vorlaender
Honored Contributor

Serial ports of rx2600 / rp3440

Hi all!

I'm trying to access an rx2600 using a serial connection (or really, a customer's rp3440; both machines have the multiplexed DB25 connector on the MP board). I do have console access through the console RS232 port, but I'd like to be able to connect through another terminal connected to the remote modem or general purpose port.

An ioscan -fun suggests the devices are /dev/tty1p0 (console), /dev/tty1p2, and /dev/tty1p4, but I've been unable to connect though any of them, or even set the serial characteristics through stty...

What am I missing?
27 REPLIES
Torsten.
Acclaimed Contributor

Re: Serial ports of rx2600 / rp3440

I did not work with modems for a long time, but IIRC the modem port of both machines is under control of the MP by default, hence you connect to the MP and share the console with the local port.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Martin Vorlaender
Honored Contributor

Re: Serial ports of rx2600 / rp3440

Torsten,

thanks for the suggestion.

To avoid additional problems caused by some modem control signals incorrectly set, until now I played with the third serial port (labeled "UPS", and described as "general purpose" in the quick specs).

Just did a quick test with the terminal connected to the remote serial port (setting it to the 19200 bps suggested by the MP's CA display) - no success.

cu,
Martin
Torsten.
Acclaimed Contributor

Re: Serial ports of rx2600 / rp3440

Did you check the CA command?

http://docs.hp.com/en/5991-6006/ch06s01.html#d0e4561

CA: Configure asynchronous local and remote serial port parameters

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Martin Vorlaender
Honored Contributor

Re: Serial ports of rx2600 / rp3440

Of course. Unfortunately, CA only configures the two serial ports (console and remote) that I *don't* use...
Torsten.
Acclaimed Contributor

Re: Serial ports of rx2600 / rp3440

The remote connector is intended for modems, UPS is AFAIK for UPS only.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Raj D.
Honored Contributor

Re: Serial ports of rx2600 / rp3440

"I'm trying to access an rx2600 using a serial connection" : What are you trying to access : a telnet session , I guess.

What device do you have on the other end of the serial cable. a PC or a Dumb Terminal ?

Are you accessing the serial port using a terminal emualation softawer , like kermit or Z-modem, ?

Are the term bits 9600/N/none set?

hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Martin Vorlaender
Honored Contributor

Re: Serial ports of rx2600 / rp3440

So the rp3440 comes with NO general purpose serial ports (as the "Serial Port A and B" are labeled "For factory use only" and are not mentioned in the QuickSpecs)??!

I can't believe that you have to buy one of those (8 port, at least) MUX PCI cards to connect a simple serial device...

cu,
Martin
TTr
Honored Contributor

Re: Serial ports of rx2600 / rp3440

Is there a getty process running on the serial port? Without a getty "listening" on the serial port, don't expect anything to show on the terminal screen.
Torsten.
Acclaimed Contributor

Re: Serial ports of rx2600 / rp3440

Depending on the settings

MP:CM> ca

and

MP:CM> sa

the modem (connected to the MODEM connector) is either under MPs full control or can be used by the OS too (i guess this is what you want to do).

Refer to

MP:CM> help sa

MP:CM> help ca

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Martin Vorlaender
Honored Contributor

Re: Serial ports of rx2600 / rp3440

Raj,

> What are you trying to access : a telnet session , I guess.

I'm trying to set up the basic serial connectivity.

> What device do you have on the other end of the serial cable. a PC or a Dumb Terminal ?
> Are you accessing the serial port using a terminal emualation softawer , like kermit or Z-modem, ?

For the tests, I just plugged in a terminal server's serial port accessed with KEA! via Telnet from a remote PC - this setup works when using it to connect to the console port.
The customer wants to connect an MGE Evolution UPS.

> Are the term bits 9600/N/none set?

I tried multiple things, setting the speed to 9600 and 19200, and even to 300 (as that is what stty tells me when queried about /dev/tty1p[24] )
Torsten.
Acclaimed Contributor

Re: Serial ports of rx2600 / rp3440

Now I'm a bit confused - what do you want to connect? A UPS? A modem? Both?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Martin Vorlaender
Honored Contributor

Re: Serial ports of rx2600 / rp3440

> Is there a getty process running on the serial port?

Not yet. I'm testing by cat'ting a text file to the /dev/ttyX . Once I know the device, I intend to set up a getty on it.
Torsten.
Acclaimed Contributor

Re: Serial ports of rx2600 / rp3440

Regarding the devices:

0/7/1/0 port 0 = "UPS port",
0/7/1/1 port 0 = "Console port",
0/7/1/1 port 2 = "Remote port"

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Martin Vorlaender
Honored Contributor

Re: Serial ports of rx2600 / rp3440

> Now I'm a bit confused - what do you want to connect? A UPS? A modem? Both?

My test environment consists of an rx2600. In this setup I'm trying to establish just the basic serial connectivity.

The customer's environment has an rp3440. He wants to connect an UPS (to be monitored by the OS).

In neither case, there are modems involved (which is why I didn't use the port labeled "modem" for my tests).
Torsten.
Acclaimed Contributor
Solution

Re: Serial ports of rx2600 / rp3440

The pathes above are for rp3440, here is for rx2600:

0/6/1/0 port 0 = "UPS port",
0/6/1/1 port 0 = "Console port",
0/6/1/1 port 2 = "Remote port"

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Martin Vorlaender
Honored Contributor

Re: Serial ports of rx2600 / rp3440

Okay, replacing the descriptions with some facts :-)

Here's the output of the MP's CA and SA commands, and of HP-UX' ioscan -fun

Which devices do you think are associated with the serial ports?
Martin Vorlaender
Honored Contributor

Re: Serial ports of rx2600 / rp3440

Thanks, Tosten, got it. 0/6/1/0 or /dev/tty0p0 is the right one.

I think I got confused by the many devices listed with 0/6/1/1...
Martin Vorlaender
Honored Contributor

Re: Serial ports of rx2600 / rp3440

Solution supplied by Torsten (and I can't spell...)

Re-opening thread...
Martin Vorlaender
Honored Contributor

Re: Serial ports of rx2600 / rp3440

Okay, so now I have got a device. But setting it up seems to be another problem (see attachment).

I apologize if these seem like stupid questions - I'm just getting into HP-UX; I'm a VMS guy...
Torsten.
Acclaimed Contributor

Re: Serial ports of rx2600 / rp3440

What do you want to do now? Running a getty on the UPS port?

Is there any special software for the UPS?
Normally such software is either autodetecting the device on a given port or needs the port and speed only (speed depends on the device).

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Martin Vorlaender
Honored Contributor

Re: Serial ports of rx2600 / rp3440

> What do you want to do now? Running a getty on the UPS port?

That could be an option. For now, just setting up the port and cat'ting a text file so that it comes out okay would be nice.

> Is there any special software for the UPS?

Probably. I'll tell him about the port to use; then he can check whether it works with his UPS.

Thanks.
Bill Hassell
Honored Contributor

Re: Serial ports of rx2600 / rp3440

>> Is there any special software for the UPS?

> Probably. I'll tell him about the port to use; then he can check whether it works with his UPS.

Actually, I would ber very surprised that there is anything compatible with HP-UX. The vast majority of small to medium UPS units are PC-only, with an occasional unit that offers some Linux code.

Note that if you cannot use stty to read the current settings from a serial port then the port is non-functional -- no need to try to get it to work. Note also that the default setting for a serial port is 300 baud, but you will see this with stty -a < /dev/tty1p<1,2 or 4>. Using stty ro set the baud rate will not stick -- you must first open the port with something like: sleep 10000 < dev/tty1p2 and then use stty. For a permanent solution, you'll need to create a script with a lot of specialized code, especially if you want this UPS to perform an orderly shutdown is case of an extended powerfail.



Bill Hassell, sysadmin
TTr
Honored Contributor

Re: Serial ports of rx2600 / rp3440

Setting up a serial port with getty and configuring a UPS are two different things when it comes to serial port setup. As Torsten hinted, the UPS software (if it exists) takes care of the serial port communication, all you need to do is give it the serial port device. Take a look at this thread for some more insight into a UPS setup. http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1353252
Martin Vorlaender
Honored Contributor

Re: Serial ports of rx2600 / rp3440

Bill,

actually, I think the customer had some software working with an rp5430 under HP-UX 11.11 (I haven't seen any of his machines - yet). But that wasn't his (primary) problem; it was that he (and me, too) couldn't find any documentation WRT the multiplexed serial ports.

Thanks for the *IX stty/serial 101.

cu,
Martin