shpope
03-04-2004, 10:14 AM
I am writing a prc that communicates with another device at 1200-N-8-1 No flow control. As I watch the serial communication coming out of the POSE debugger, the first two chars are sent at 1200 baud then the baud rate is changed to 9600 and the remaining 11 chars are sent at 9600 baud. Any ideas what could be causing this? It may be important that the first two chars are both 0x00 and the code I am using to send the data is:
if(serPortOpen){
numSent = SrmSend(portID, pcData,
unNumBytes, &err);
if (err == serErrTimeOut) {
//cts timeout detected
}
}
if(serPortOpen){
numSent = SrmSend(portID, pcData,
unNumBytes, &err);
if (err == serErrTimeOut) {
//cts timeout detected
}
}