Do you flush the receive buffer after you open the port? Are the port settings correct (baud, stop bits, parity, etc)?
----- Original Message ----- From: "Patrick Ouellet" <[EMAIL PROTECTED]> Newsgroups: palm-dev-forum To: "Palm Developer Forum" <[email protected]> Sent: Thursday, October 05, 2000 3:50 PM Subject: Serial Weirdness > Ok Im doing this to receive a couple of string via Serial Modem > connection > > do > { > RecepErr = SerReceiveWait(NumRef, 1, -1); > switch(RecepErr) > { > case 0: > { > StrCopy(strRBuff, InBuff); > ScanComm(InBuff); > break; > } > case serErrTimeOut: > { > return false; > break; > } > case serErrLineErr: > { > return false; > break; > } > } > } > while(TransmissionEnd == false); > > But what I receive is far from what I send... > Does someone see a problem with the code above ? > > What I send: > "UserName:Patrick Ouellet"<CR><LF> > > What I receive ( when I display it using FrmCopyLabel ) > ±R±R±R±R±R±R±R±r > Till I get a Fatal exception (assuming that I hit the capacity limit of > my string... Be cause I > loop until I find a <CR><LF> in the receiving buffer) > > -- > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > Patrick Ouellet - Programmeur > [EMAIL PROTECTED] > Recherche & Devloppement > Les Entreprise Microtec inc. > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ > > -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
