Ken stone, I am an engineer working with motorola.I
am doing a project and I have a question on Red hat linux
7.1. Description of problem: I have two PC's connected using serial cable (RS232 NULL
modem).On one of the PC's I have DOS based serial communication software
running(written by polling method and
not by interrupt mechanism).On the other computer I have linux serial
communication program running. The PC with dos based serial communication is sending the
packets (I have verified this by shorting the Tx and Rx pins on the 9 pin comport) But the PC with linux based serial
communication software is not receiving the packets.I
feel the problem with PC with linux. It is not receiving the packets.I
have pasted the program here as under(this is I have
taken from HOWTO document of linux). Can you please give pointers as to what we can check so that
our serial communication from DOS to linux is successful. Will be grateful for your
help in this regard. #include <termios.h> #define BAUDRATE B38400 volatile
int STOP=FALSE; void
signal_handler_IO (int
status); /* definition of signal handler main() /* open the
device to be non-blocking (read will return immediatly)
*/ /* install the
signal handler before making the device asynchronous */ /* allow the
process to receive SIGIO */ tcgetattr(fd,&oldtio); /* save current port settings */ /* loop while
waiting for input. normally we would do something
***************************************************************************/ void
signal_handler_IO (int
status) Best Regards, Srinivas |
************************************************************************ SASKEN BUSINESS DISCLAIMER This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. ***********************************************************************