Operating System - HP-UX
1832857 Members
3448 Online
110047 Solutions
New Discussion

Configuring a modem on ttyd1p0

 
Pascal Haeny
Occasional Advisor

Configuring a modem on ttyd1p0

Dear all,
I would like to disable (definitely stop the ungetty process) in order to be able to use the ttyd1p0 for an other application.
I get the messagae Device Temporarily Unavailable, certainly because of :
ps -ef |grep ttyd1p0
root 13273 1 0 14:16:12 ? 0:00 /usr/lbin/uucp/uugetty -r -t 60 -h ttyd1p0 9600

Could you please tell me where do I have to stop the process ?
Pascal Haeny
1 REPLY 1
Rita C Workman
Honored Contributor

Re: Configuring a modem on ttyd1p0

Found this...maybe it will help you:
==================================
How to access a port without a getty/uugetty running.
DocId: KBAN00000224
Updated: 20000224

DOCUMENT

How to open up a port and set the stty characteristics on a port without a getty/uugetty process.

1. Create the /dev entry by adding a modem using SAM for call-in and callout.
(This will create 3 device files ttyd#p#, cul#p#, and cua#p#).

2. Edit the last line in /etc/inittab and replace respawn to off.

a0:3:respawn:/usr/lbin/uucp/uugetty -r -t 60 -h ttyd0p0 19200
a0:3:off:/usr/lbin/uucp/uugetty -r -t 60 -h ttyd0p0 19200

Example using ttyd0p0 on the D series system

#fuser ?k /dev/ttyd0p0 (This will kill all processes on that port)

#nohup sleep 9999999 < /dev/ttyd0p0 &(Opens the port with a sleep for 9999999 seconds)

#ps ?ef |grep sleep (Check for the sleep running on the port)

#stty ?a < /dev/ttyd0p0 (Displays the current stty port settings *You will see the baud rate set to 300 *

#stty 9600 < /dev/ttyd0p0 (This will set the baud rate to 9600)

At this point one can setup parity and stop bits if the applications call for it. The port will keep this stty setting until the sleep times out or the system is rebooted.

Regards,
Rita