hi

 Thank you.After i changed the pin configuration i got the eror corrected.

The Palm serial cable is wired as a modem device (DCE). So pin #2 Rx is a
output, pin

#3 is a input. A regular desktop computer is wires as Data Terminal (DTE).
The same pin

numbers are used but Rx is a input, Tx is an output. Some devices will
require you swap

the Rx & Tx pins.

 Otherwise you have inputs to inputs and outputs to outputs. No operation.
This is

the most likly cause of your problem.


----- Original Message -----
From: "Dave Lippincott" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, March 06, 2002 8:01 PM
Subject: Re: Please help me -RS-232 communication error .


> Do you have the stop bit and parity set correctly?  Are you using the
> correct cable?  You don't seem to be testing any of the serial functions
for
> returned errors.  Are they executing correctly and not returning errors?
Is
> your external device actually sending any data?
>
>
> ----- Original Message -----
> From: "suresh" <[EMAIL PROTECTED]>
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Tuesday, March 05, 2002 9:32 PM
> Subject: Please help me -RS-232 communication error .
>
>
> > Hi
> >
> >
> >              I am attempting to read the RS-232 serial output from a
> > external device from(digital converted Loadcell output) my palm to
> store.The
> > device will send the output to the 9 pin serial connector once it
receives
> > the call from the palm(ie character "A").I tried so many times but i
could
> > not read the output.
> >
> > I set the same baud rate  at both ends. Here is my code.
> >
> > Boolean doSend()
> > {
> > Err errP;
> > UInt16 i;
> > UInt16 newPortIdP;
> >
> > Char pBuf[10];
> > Char pBuf2[10];
> >
> > UInt32 bytes = 10;
> > Int32 timeout = 1000;
> > FormPtr activeForm;
> > file://FrmGetObjectIndex(activeForm, MainList);
> > FieldType* fldP;
> > UInt32 actualRead = 0;
> > UInt32 actualSent = 0;
> > UInt32 cnt=0;
> > UInt16 refNumP;
> >
> > StrNCopy(pBuf, "AA", 2);
> >
> > SysLibFind("Serial Library", &refNumP);
> > SerOpen(refNumP, 0, 1200);
> > actualSent = SerSend(refNumP, pBuf, 1, &errP);
> > actualRead = SerReceive(refNumP, pBuf2, 5, 1000, &errP);
> > SerClose(refNumP);
> >
> >
> > /*SrmOpen(serPortCradlePort , 1200, &newPortIdP);
> > actualSent = SrmSend(newPortIdP, pBuf, 1, &errP);
> > actualRead = SrmReceive(newPortIdP, pBuf2, 5, 1000, &errP);
> >
> > SrmClose(newPortIdP);*/
> >
> > activeForm = FrmGetActiveForm();
> > fldP = FrmGetObjectPtr(activeForm, FrmGetObjectIndex(activeForm,
> > EDT_DISPLAY));
> > FldInsert(fldP, pBuf2, StrLen(pBuf2));
> >
> > activeForm = FrmGetActiveForm();
> > fldP = FrmGetObjectPtr(activeForm, FrmGetObjectIndex(activeForm,
> > EDT_DISPLAY));
> > FldInsert(fldP, "Ok", 2);
> > }
> >
> >
> >
> > Thanks in advance
> >
> > Sureshbabu
> >
> >
> >
> >
> > --
> > 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 Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to