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

USB Serial ports cu on rx2800

SOLVED
Go to solution
bigdaddy68
Advisor

USB Serial ports cu on rx2800

Hi,

Is there anything special I need to do to use one of the USB ports on back of rx2800 for a serial terminal session on another system ? On HP-UX 11.31..

There are 2 USB ports and I have each USB to Mini-5 cable plugged into a P2000 disk array controller to configure it.

I see these devices:

/dev/tty0P0
/dev/tty1p0

in /etc/uucp/Devices I have 2 entries:
.
.
Direct tty0p0 - 115200 direct
Direct tty1p0 - 115200 direct

Then I tried using

# TERM=vt100 ; tset
# cu -ltty0p0

it says I get connected however I can't see any characters and the only cmds that work are ~# or ~. to get out..

Can anyone suggest if I am doing this right or if I am off base here ?

Thanks much
bigdaddy68

BigDaddy68
22 REPLIES
bigdaddy68
Advisor

Re: USB Serial ports cu on rx2800

..even slower sped of 19200 in /etc/uucp/Devices doesn't seem to work..

BigDaddy68
Steven Schweda
Honored Contributor

Re: USB Serial ports cu on rx2800

I know nothing, but ...

A USB port is not the same as a serial port.
I would not expect "cu" to work with any
random USB device.

Because I know nothing about what's supposed
to be connected to the USB port on a "P2000
disk array controller", whichever model, I'd
probably try reading the manual before I
started connecting cables. And my guess is
that I'd be trying to talk to the thing over
the (Ethernet) network instead of trying to
use its USB interface.

Knowing nothing, my guess would be that
there's some Windows program which knows how
to talk to the USB port on one of these
things. But I know nothing, and I haven't
seen a manual.
Torsten.
Acclaimed Contributor

Re: USB Serial ports cu on rx2800

AFAIK the special driver for windows systems turns this USB connection into a serial port for configuring the P2000 - I assume you cannot do this with a hp-ux system.

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!   
Torsten.
Acclaimed Contributor

Re: USB Serial ports cu on rx2800

Just to add - you can configure the array via the web interface. IMHO the best method is via the CLI by using a telnet or SSH connection.

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!   
Steven Schweda
Honored Contributor

Re: USB Serial ports cu on rx2800

> AFAIK the special driver for windows
> systems turns this USB connection into a
> serial port for configuring the P2000

No software can turn a "USB connection into a
serial port". A USB port is one thing. A
serial port is a different thing. (And a
"connection" is not a "port".) The "S" in
"USB" does stand for Serial, but that's just
about all that the two things have in common.

> - I assume you cannot do this with a hp-ux
> system.

If you had enough software on an HP-UX
system, then you could probably use a USB
port there to communicate with the USB port
on one of these disk arrays. But you might
need to write most of it yourself.
Torsten.
Acclaimed Contributor

Re: USB Serial ports cu on rx2800

>> No software can turn a "USB connection into a serial port".



Steven, once I connect a P2000 via USB and I load a driver, I get another COM port and access it with any terminal emulator, e.g. reflection, putty (serial), hyperterminal, etc ...


So it works like a "normal" serial port.



You can find the same when using a new Procurve switch, you do the same thing there, connection with a normal USB cable, load the driver and access with a terminal emulator application.


So in fact you "turn the connection into a serial port".



Try it or read about!


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!   
Torsten.
Acclaimed Contributor

Re: USB Serial ports cu on rx2800

See attachment.

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!   
Steven Schweda
Honored Contributor

Re: USB Serial ports cu on rx2800

> So in fact you "turn the connection into a
> serial port".

That's like saying that Telnet can "turn a
connection into a serial port". Many things
allow communication, but that doesn't make
them all serial ports.

> So it works like a "normal" serial port.

That doesn't make it a serial port, either.
It might _emulate_ a serial port.

With enough software, many things can emulate
many other things. Without enough software,
dissimilar things stay dissimilar, which is
why merely connecting a couple of USB ports
together is unlikely to do anything useful,
if you were expecting then to act like two
serial ports, which they're not.
Matti_Kurkela
Honored Contributor
Solution

Re: USB Serial ports cu on rx2800

Torsten, that probably means the P2000 has a built-in USB-to-serial adapter. That's a piece of hardware: therefore, Steven's "No software can turn a 'USB connection into a
serial port'" is accurate.

The original poster seems to be trying to use the USB ports on the rx2800 side.

HP-UX has USB support for a very limited range of devices only. As far as I know, this includes only USB hubs, HID devices (keyboards, mice and equivalents) and some mass storage devices.

This seems to be the latest official word on the state of the USB hardware support on HP-UX:
http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c01914764/c01914764.pdf

Looking at the multitude of USB-to-serial adapter drivers existing on Linux, it looks like there is no single "USB-to-serial adapter" standard. (Or if such a standard exists, it doesn't seem to be widely adopted yet.) So I would not expect HP-UX to start handling *all* USB-to-serial adapters on the market. If we're lucky, perhaps HP will support the adapters included in HP's own products, but I wouldn't hold my breath...

MK
MK
Torsten.
Acclaimed Contributor

Re: USB Serial ports cu on rx2800

My description was probably not the best, but however, using a simple USB cable and the appropriate driver you get a serial connection from the client (PC) to the array. This probably means the USB to serial converter is inside the array controller, but it works just like any other USB to serial converter.


But there is not really a need for this, because you can do (almost) all configuration tasks over the network by using a browser, telnet or ssh session.

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!   
Steven Schweda
Honored Contributor

Re: USB Serial ports cu on rx2800

> Torsten, that probably means the P2000 has
> a built-in USB-to-serial adapter.

No, it probably doesn't. I'd expect a
USB-to-serial adapter to present to the user
a serial port, not a USB port, and this thing
appears to have a (mini) USB port on its
panel, not a serial port.

My point here is that it pays to have a clear
concept of which hardware and software is
doing what in a case like this. (Otherwise,
you tend to connect a USB cable between two
pieces of equipment and then hope for magic
to occur, which tends to lead to
disappointment.)

> [...] If we're lucky, perhaps HP will
> support the adapters included in HP's own
> products, but I wouldn't hold my breath...

In fact, HP does support (or at least
tolerate) a few of then in VMS, but even if
it did support them in HP-UX, that still
wouldn't help in this case, because THERE IS
NO SERIAL PORT INVOLVED HERE. Really. There
isn't. And adding a serial port at one end
of the wire won't help you to communicate
with the not-a-serial-port at the other end.
Really. It won't. Adding some _software_ on
the HP-UX side might help, but adding
hardware (like a USB-to-serial adapter) can't
help you talk to a USB port. (Unless you can
persuade the other end to talk to another
USB-to-serial adapter, too, which seems
pretty unlikely. And then you'd need a
serial cable, not a USB cable.)

> [...] you get a serial connection [...]

You may get something which _looks_ like a
serial connection, but it's not a real serial
connection. Really. It's not.

> But there is not really a need for this,
> [...]

No argument there.
Torsten.
Acclaimed Contributor

Re: USB Serial ports cu on rx2800

I don't know why you insist this is not a serial port or connection, but I already used it ...

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!   
Steven Schweda
Honored Contributor

Re: USB Serial ports cu on rx2800

> I don't know why you insist this is not a
> serial port or connection, [...]

Mostly because there is no actual serial port
or serial cable involved here.

It's similar to the way that there's no real
parallel port or parallel cable involved when
someone connects a printer with a USB
interface. Or the way that that there's no
real SCSI port or SCSI cable involved when
one connects a disk drive with a USB
interface. Or, ...

But you get the idea. (Or perhaps not.)
Torsten.
Acclaimed Contributor

Re: USB Serial ports cu on rx2800

It's called the USB serial console, basically the same if I connect my PC to a server serial console via an usb to serial converter, but this converter is part of the array

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!   
Steven Schweda
Honored Contributor

Re: USB Serial ports cu on rx2800

> [...] but this converter is part of the
> array

Yes, exactly, except that there is no such
converter in the array. (I find this fact to
be significant, while some people apparently
do not.)

One advantage of having an accurate mental
model of this stuff is that it doesn't lead
one to imagine the existence of nonexistent
hardware. But if you insist on believing in
miracles, then there's probably nothing I can
do about it.
Torsten.
Acclaimed Contributor

Re: USB Serial ports cu on rx2800

The manual is calling this "USB console port
(serial, out of band)", has a chapter about "USB Serial Console Connected PC", I'm corious about Steven's theory of operation of this connection, but last but not least this doesn't really help the thread owner ...


@bigdaddy68, sorry for all this, but please consider to use the web interface or better the CLI via ssh.

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!   
bigdaddy68
Advisor

Re: USB Serial ports cu on rx2800

Thanks Torsten,

This is certainly a good debate.

Can any of you can tell me if tty0p0 and tty1p0 are the USB ports special device files ??

if they are the I was at least able to cu to them even if they didn't answer back.

I get that they can't be used and I am OK with that.

For the setup of this P2000 array I need to do it from the host HP-UX system and I was having a hard time using Virtual IP address on lan0:1 trying to ping/telnet/connect to 10.0.0.2 and .3 (the array controllers). Not sure where I went wrong but I will investigate.

thx again
bigdaddy68
BigDaddy68
Torsten.
Acclaimed Contributor

Re: USB Serial ports cu on rx2800

It's important to use the management LAN connectors on the array, the iSCSI connection (if present) don't provide the management interface.

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!   
Steven Schweda
Honored Contributor

Re: USB Serial ports cu on rx2800

> Can any of you can tell me if tty0p0 and
> tty1p0 are the USB ports special device
> files ??

SAM/SMH probably can. On my rx2600, for
example:

Tools -> Peripheral Devices -> Manage Peripheral Devices

I see a few things in the Class "tty":

PCI SimpleComm /dev/tty0p0 (...)
PCI Serial /dev/tty1p0 (...)
Built-in RS232C /dev/tty2p0 (...)
Built-in RS232C /dev/tty3p0 (...)

And there are two actual serial ports on the
rear panel, but I don't know which device
corresponds to which serial port.

The "PCI SerialBus" things in the Class "OO"
look to me like the USB devices. (Which are,
of course, distinct from the serial ports.)

> if they are the I was at least able to cu
> to them even if they didn't answer back.

I would expect "cu" to work with a serial
port, not with a USB port. I'd be astounded
if you were dealing with any USB ports.

Note that a USB port is rather like a SCSI
adapter. It's hardware, but you normally
talk not to it but to a device which is
connected to it (like, say, a disk drive).
So, even if you found a USB adapter device in
"/dev", it probably wouldn't be the thing
with which you'd want to deal.

> For the setup of this P2000 array [...]

My brief search for documents suggested that
there is more than one type of "P2000 array",
and I have no idea which you have. I also
have no information on what the default IP
address for a P2000 might be.

> [...] I was having a hard time using
> Virtual IP address on lan0:1 trying to
> ping/telnet/connect to 10.0.0.2 and .3 (the
> array controllers).

With my weak psychic powers, I also have no
idea how you set up this "Virtual IP
address", or why you expected those other IP
addresses to work. Or if you connected the
Ethernet properly, or much else, really.
Torsten.
Acclaimed Contributor

Re: USB Serial ports cu on rx2800

The default management IP addresses of the P2000 are:

...
Each controller has the following factory-default IP settings:
- DHCP: enabled
- Controller A IP address: 10.0.0.2
- Controller B IP address: 10.0.0.3
- IP subnet mask: 255.255.255.0
- Gateway IP address: 10.0.0.1
...



Each controller model has these management ports, no matter if it is iscsi, FC or a mix of both.




Page 45 of the user manual has also the settings of the serial (USB) ports:


Table 6

Terminal emulator display settings
Parameter Value
Terminal emulation mode VT-100 or ANSI (for color support)
Font Terminal
Translations None
Columns 80


Table 7
Terminal emulator connection settings
Parameter Value
Connector COM1 (typically)
Baud rate 115,200
Data bits 8
Parity None
Stop bits 1
Flow control None

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!   
Steven Schweda
Honored Contributor

Re: USB Serial ports cu on rx2800

> [...]
> - DHCP: enabled
> - Controller A IP address: 10.0.0.2
> - Controller B IP address: 10.0.0.3
> [...]

So, if it hears from a DHCP server, what
happens to the 10.0.0.x addresses?
Overridden by the DHCP-server info?

Of course, I also don't know if there's a
DHCP server available in this environment,
but that might explain why no one responds at
10.0.0.x.
Torsten.
Acclaimed Contributor

Re: USB Serial ports cu on rx2800

I tested the following in the past successful:

- PC with DHCP server (cross cable) -> the controller get a custom IP

- PC without DHCP server (cross cable) -> controller is accessible via 10.0.0.x)

- PC with USB connection using putty serial terminal emulator for accessing the serial CLI

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!