Operating System - HP-UX
1833605 Members
3794 Online
110061 Solutions
New Discussion

Re: serial device communication and changing of port settings

 
SOLVED
Go to solution
Bhaskar_3
Occasional Contributor

serial device communication and changing of port settings

We have a HP-UX 11.0 on a rp54X0 server.It has got a 25 pin port which is bifurcated into 3 different ports by another cable.Each of these ports has a device file associated - /dev/tty0p0(console), /dev/tty0p1(ups), /dev/tty0p2(remote).
We have an external device - Host Security Module(Thales E-Security) which uses the RS232 standard for communication.
I have three questions -
1. Can i use one of the 3 existing ports for connecting to this HSM Box? (The HP Support person has suggested using a mux card for any serial communication with external devices)
2. Except for the console port, i'm not able to change the options for any of the other ports.I have also tried giving 'nohup sleep 9999999999 >/dev/tty0p1&' followed by 'stty 9600 < /dev/tty0p1'. But even then the baud rate remains 300 only.
3. Since i was able to change the options for the console port, i tried using it for sending a message (from a program written in C - see attached file portchk.c) to my HSM box after disabling the getty process on this terminal.But i'm not getting any response from the HSM box.(When i use the same program for sending msg to the HSM box from my Sun box i get a response of '000100010ND' which is the right response).

Could anyone please help me in getting my HSM box connected to my HP box!!
3 REPLIES 3
Ken Hubnik_2
Honored Contributor

Re: serial device communication and changing of port settings

The HP person is correct. We had to order a mux to hook up a modem because we had some weird things happening when using the 3 prong cable.
Darren Prior
Honored Contributor
Solution

Re: serial device communication and changing of port settings

Hi,

I believe you do need a separate mux card to use the HSM on the grounds that you won't want to disconnect it if you need to use the port for something else, and the unsuitability of the internal ports. Having a separate mux means that you can keep the HSM connected all the time and that nothing else will need the port.

There are ways of changing the remote port's options, but I'd advise against it - this port is used with a modem for remote console support via the GSP and is most likely to be disabled at this time. The ups port isn't likely to be a full RS232 port (there may not be all the handshaking), and it is not a good plan to tie up the console port which may be required if you have no other access to the system.

regards,

Darren.
Calm down. It's only ones and zeros...
Bhaskar_3
Occasional Contributor

Re: serial device communication and changing of port settings

Hi Darren,
You have mentioned that 'There are ways of changing the remote port's options'.Could you please tell me how i can change these options?Although we will be using mux card in production, we would like to go ahead with the porting and testing by using one of the localised ports.
Thanks for the help.
Regards,
Bhaskar.