Operating System - HP-UX
1824216 Members
3341 Online
109669 Solutions
New Discussion юеВ

How to use B180L Work Station Serial Port

 
SOLVED
Go to solution
Kenneth_18
Frequent Advisor

How to use B180L Work Station Serial Port

Hi,

I have a HP Visualize workstation which has at the back two male db9 ports. I am assumming that these are rs-232 ports. Can someone please give me some instructions how I can connect to another device using HP-UX and the serial port, how to set the parity and baud rate, etc., just like as using hyperterminal on a windows box to connect to a router.

Thanks in advance for any help and hints.
8 REPLIES 8
Leif Halvarsson_2
Honored Contributor

Re: How to use B180L Work Station Serial Port

Hi
The most easy way is to use SAM->Periphal devices->Terminals and Modems
Kenneth_18
Frequent Advisor

Re: How to use B180L Work Station Serial Port

I've already configure it via SAM. Now how do I start a terminal session to connect to another device. Thanks.
Leif Halvarsson_2
Honored Contributor

Re: How to use B180L Work Station Serial Port

Hi

Check the /etc/inittab file for a line like:
a0:3:respawn:/usr/sbin/getty -h tty1p0 9600

If it is there you should only need to connect your terminal to the serial port ant type a return to get a login prompt. If not, it can be something wrong with your cable or terminal settings.
Kenneth_18
Frequent Advisor

Re: How to use B180L Work Station Serial Port

Hi, yup it has those settings. But how do I connect to a device using the shell. I mean do I open a new terminal in the CDE, how do I connect or associate the new terminal to the serial port. Thanks so much and forgive my ignorance
Darren Prior
Honored Contributor
Solution

Re: How to use B180L Work Station Serial Port

Hi,

Once you've got the device files (either through SAM or using mksf or mknod) I'd suggest you use something like Kermit or cu(1) to connect to your router as they would have been installed with HPUX. Kermit has some built in help pages, and there's some good books out there on how to use it, but here's a crash course:

Type kermit to get it running, then at the C-Kermit prompt type
set line /dev/tty1p0 (or whatever your device file is)
set speed 9600
connect

After a 'connecting to tty1p0' message and info on the escape keys you'll have a flashing cursor and will then be able to type and send commands to your router in the same way that you can with hyperterminal.

At the end of your session use ctrl-\ c to get back to the C-Kermit prompt, then use exit to quit. Also at the C-Kermit prompt before you connect you can use the show ? and set ? commands to see changeable parameters.
regards,

Darren.
Calm down. It's only ones and zeros...
Ravi_8
Honored Contributor

Re: How to use B180L Work Station Serial Port

Hi,

I have the same workstation, which came from Pittsburgh lab. when i powered on using normal console and serial port-1 at the back, nothing used to display. Finally we settled for hyper-terminal.
never give up
Leif Halvarsson_2
Honored Contributor

Re: How to use B180L Work Station Serial Port

Hi

I have used cu for a direct line connection between two hosts. Have a look at the man pages for cu, there is some examples there.
Kelli Ward
Trusted Contributor

Re: How to use B180L Work Station Serial Port

Hi,

Here's also another option for terminal emulation.
RS-232A (serial 1) - /dev/tty0p0
RS-232B (serial 2) - /dev/tty1p0

Edit the end of /etc/uucp/Devices and add:

Direct tty0p0 - 9600 direct
Direct tty1p0 - 9600 direct

You can then use cu -l /dev/tty0p0 (or tty1p0) on any terminal to connect to another computer for example.

Good luck,
Kel
The more I learn, the more I realize how much more I have to learn. Isn't it GREAT!