Re: Communicating through a serial port
- From: "Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
- Date: Fri, 21 Oct 2005 08:57:09 -0700
Not every UART chip will support 2 stop bits. You should check the return
values of all of your serial calls and make sure you aren't ignoring an
error.
Paul T.
"Arnau Font" <a@xxx> wrote in message
news:O%23NplCj1FHA.3204@xxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> I have a program in eVC that comunicates my PDA with a terminal via the
> serial port. The communication params are:
>
> 9600 bauds
> Even parity
> 8 bytesize
> 2 stopbits
>
> This program usually works with most PDA (i've tried in a Dolphin 7400,
> Dolphin 9500, Cassiopeia EG-800) but in a Cassiopeia EM-500 it doesn't
> work.
> Looks like the terminal receives the information, but it returns that it
> has
> received it wrong, as if the data was corrupted.
>
> The port configuration is the following:
> PortDCB.BaudRate=9600;
> PortDCB.ByteSize=8;
> PortDCB.Parity=EVENPARITY;
> PortDCB.StopBits=2;
> PortDCB.fNull=false;
> PortDCB.fDtrControl=DTR_CONTROL_DISABLE;
> PortDCB.fParity=true;
>
> The rest of the parameters are left as default.
>
> Any ideas?
>
> Thanks!
>
> Arnau.
>
>
>
>
.
- Follow-Ups:
- Re: Communicating through a serial port
- From: Arnau Font
- Re: Communicating through a serial port
- References:
- Communicating through a serial port
- From: Arnau Font
- Communicating through a serial port
- Prev by Date: Re: Can't attach to process on CE device
- Next by Date: Re: Can't attach to process on CE device
- Previous by thread: Communicating through a serial port
- Next by thread: Re: Communicating through a serial port
- Index(es):
Relevant Pages
|