Operating System - HP-UX
1835006 Members
2453 Online
110073 Solutions
New Discussion

Re: serial port communication on an L2000

 
Jay Pharis
Occasional Advisor

serial port communication on an L2000

I'm attempting to move an application from a K380 box running 11.0 to a L2000 running 11.0. The application communicates with the modem over a leased line. It doesn't like me.

I've got the modem (Motorola v3600) connected to the cable marked 'remote', and I'm running a cable with the same pinouts as a 24542M cable between the modem and the W cable. I can send AT commands to the modem just fine, and get response back.

On the K380, the modem hookup was like this: mux port->mux->breakout box->modem. This was in place when I started this job, so I have no idea why it is so.

Anyway, finally getting to the point, all I need to do is communicate over the serial port. Do I have the wrong cable type for this? And what device file should I be using, /dev/tty0p2 or /dev/cua0p2? From what I can tell, the two devices are identical (which would make sense to me).
7 REPLIES 7
Uday_S_Ankolekar
Honored Contributor

Re: serial port communication on an L2000

Hello,

Once you configured Modem (Through Sam >Phereperal Devices >Modem ) look for the getty process by ps -ef | grep getty . This should show you getty process running on some port.
Two main files are
/etc/gettdefs and etc/inittab

Your Cable 24542M and Remote port of W-cable are the right one.

Check Modem configuration for HP-UX in modem manual.

It should be simple.

Goodluck
-USA..
Good Luck..
Jay Pharis
Occasional Advisor

Re: serial port communication on an L2000

I don't need getty running. The modem is a leased line that dials itself, I just send and read data to/from the modem.
Carlos Fernandez Riera
Honored Contributor

Re: serial port communication on an L2000

MANOJ SRIVASTAVA
Honored Contributor

Re: serial port communication on an L2000

Hi Jay


The device on L class for the remote console port is tty0p1 and ups port is tty0p2


Manoj Srivastava
Jay Pharis
Occasional Advisor

Re: serial port communication on an L2000

Manoj, from all I have read, your answer is incorrect, and you have the device files reversed. I'd love to see anything that proves me wrong, though.
Printaporn_1
Esteemed Contributor

Re: serial port communication on an L2000

Hi,

As I know /dev/cua... is dial out side and /dev/tty... is receiveing side.

use cu or kermit
cu -lculxxx for connect to remote side.

use lssf to check for the port.
goto cu manpage for document about serial device and /etc/uucp/Devices configuration.

enjoy any little thing in my life
Carlos Fernandez Riera
Honored Contributor

Re: serial port communication on an L2000

My UPS port is /dev/tty0p1....


I check it by connecting the console screen to each port and doing echo "MESSAGE" > /dev/ttyxpx..

unsupported