Re: OpenNETCF Serial not working in my WinCE 5.0 device



A framing error indicates that the parity or the byte size is wrong,
generally. You might set a breakpoint at the point where you're about to
send the data and check the current settings for the port you're sending it
on and make sure they match the external device. It sounds to me like
you've set the parameters, or one of them, to the wrong instance of the
RS232 class or something like that (copy/paste error, maybe).

Paul T.

"Bryan Gan" <BryanGan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AC99B87C-B8B4-420A-9790-9647B93CA580@xxxxxxxxxxxxxxxx
> Hi all,I am running the OpenNETCF.Serial.IO library under WinCE 5.0
> device. I
> am able to connect to my embedded modem (COM4) successfully via
> Hyperterminal
> and successfully issue AT command in hyperterminal.
> However, when I try to run on the sample app built by me , which is using
> the mentioned library, whenever I try to issue an AT command, I will
> receive
> Framing error. Anybody can help me solve this?
> Here is the port settings:
>
> Port Name: COM4:
> BaudRate: 115200
> Byte Size: 8
> Parity: None
> StopBits: One
>
> The application works fine in another WinCE device(WinCE 4.2) which have
> the
> following configuration:
>
> Port Name: COM3:
> BaudRate: 9600
> Byte Size: 8
> Parity: None
> StopBits: One
>
> I also downloaded the sample app from
> http://msdn.microsoft.com/mobility/default.aspx?pull=/library/en-us/dnnetcomp/html/PISAPICF.asp
> and try to run it on Win5.0 device, also fail (but pass on WinCE 4.2
> device).Any Clue?


.



Relevant Pages