1846428 Members
3082 Online
110256 Solutions
New Discussion

Re: Reset modem

 
Juno
Occasional Advisor

Reset modem

I have a modem is connected to our UNIX panel and remote side for the user to dail-in, but sometimes the remote side terminate the connection, but the local modem do not hang up , it seems still connected , can I ask the UNIX to send some reset code to the modem after the user is logout? Thx.
Juno
5 REPLIES 5
Rajeev  Shukla
Honored Contributor

Re: Reset modem

Yes this a problem experienced sometimes. You need to change the parameters in /etc/gettydefs say if you are connecting at 9600 then change the 9600 line in gettydefs to have the follwing

9600 # B9600 HUPCL SANE CS8 -PARENB ISTRIP IXANY TAB3
# B9600 SANE CS8 -PARENB ISTRIP IXANY TAB3
#login: #9600

Its should work then

Thanks
Rajeev
Juno
Occasional Advisor

Re: Reset modem

How do i know what is the connection speed ?thx.
Juno
Alexander M. Ermes
Honored Contributor

Re: Reset modem

Hi there.
In the /etc/gettydefs the B9600 gives you the connection speed.

This is what we use for the MultiTech modems :
in /etc/gettydefs ( Speed 38400 ) :

38400m # B38400 HUPCL OPOST CS8
# B38400 HUPCL SANE CS8 IXANY TAB3
#Please login(38400): #38400m

You also have to give this to the respawn in the /etc/inittabs :

a0:3:respawn:/usr/sbin/getty -h -t60 ttyd2a5 38400m # Dialback Modem

Then you should be fine.
Rgds
Alexander M. Ermes
p.s.
check the manpages for gettydefs and inittab, that might help.
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Juno
Occasional Advisor

Re: Reset modem

can the system send the modem reset code (force modem on-hook) to the modem automatically once the connection is termination ? Thx.
Juno
Rajeev  Shukla
Honored Contributor

Re: Reset modem

To check your connection speed look at the tty you are connecting and then check that tty in /etc/inittab or you can also check from the client side by checking the modem configuration and see at what speed it connects and accordingly change the line in /etc/gettydefs

Rajeev