Nevermind, I found the problem
It was my receivebuffer. There was a problem with my receive buffer. I am
using the default receive buffer and everything is working fine.
ckc
"ckc" <[EMAIL PROTECTED]> wrote in message news:16642@palm-dev-forum...
>
> I am writing a Palm application that interfaces with another device that
has
> a remote command language via the serial port. I am able to successfully
> send data to the other device which should respond with the appropriate
> data. The problem that I am having is that only part of the data is being
> returned. For example, instead of getting "abcdeg", I am getting "abc".
> After the SerReceiveWait call I get an error #769 which is the BadParam
> error. Can anyone shine some light on this problem for me. I also get a
> Line error on the SerReceiveCheck call.
>
> The following snippet of code identifies a problem:
>
> timeout = SysTicksPerSecond() / 2;
> e = SerReceiveWait(SerialRefNum, sizeof(theData) - 1,timeout);
>
> if (e)
> {
> file://Clear Port of Line Errors
> displayErrorMsg(e);
> SerClearErr(SerialRefNum);
> return;
> }
>
> e = SerReceiveCheck(SerialRefNum, &numBytesPending);
>
> if (e)
> {
> file://Clear Port of Line Errors
> displayErrorMsg(e);
> SerClearErr(SerialRefNum);
> return;
> }
> Any help is greatly appreciated.
>
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/