Reseting the Serial Port

Reseting the Serial Port

Post by David Kerraw » Wed, 11 Jun 1997 04:00:00



Hi All,

I'm having some trouble with a piece of software which commuicates between
the Linux Box and testing machine I have. At the request of the test
machine, the program reads a file from disk and sends it back down the
serial line. This works fine some of the time. Every now and the though the
program starts using more and more CPU and does not respond to requests
from the test machine. Killing the program and restarting it has no effect,
however if I reboot the Linux PC then everything is fine again.

The question: Is there a way to reset the serial port similar to a reboot
without rebooting the PC.

Thanks in advance

Dave

 
 
 

Reseting the Serial Port

Post by Skip Ry » Sat, 14 Jun 1997 04:00:00


Yes. look into to "stty"

to see the settings you can do a "stty </dev/modem"

you should be able to set many parameters too.

OR

Use "kermit" and issue serial commands. If a modem is involved
you could "ATZ" it.

 
 
 

1. How to reset a Serial port?

There is a bug somewhere in the Serial Driver of linux that intermittendly
causes modem not to respond anymore to any characters on the serial port.

If the computer is restarted all is fine until that lockup happens again on
the serial port.

Is there any way to tell the serial driver to reinitialize the port?

--
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
The Water Fountain (818)454-2474.          Come all ye who are thirsty....
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

2. Gate's WSJ Op-Ed

3. resetting the serial port without rebooting

4. Setting Time Zone

5. Resetting a serial port

6. netstat and ifconfig hang

7. Resetting the Serial Port

8. FOLLOWUP: Rogers@Home new DHCP thing...

9. how to reset serial port on SUN workstation

10. How to completely reset serial port / modem?

11. How to reset serial port and modem in C / Linux?

12. How to reset serial port on Sun Workstations?

13. Resetting Serial Ports?