Yes the trasfert in the other way... when the palm send data to the computer
work like a charm....
I receive everything and I never have problem of bizz data or incomplete...
and I know the other progem correctly send the data cause I sniffed what goes
on the
serial port with a terminal program...
I flush the receiving buffer just after I send the last bit of data with the
palm
just before the do statement...if you prefer...
Dave Lippincott wrote:
> 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/
> >
> >
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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/