Re: Problem communication with Serial Port

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Did this application use SetupComm.
It used to be return TRUE even the serial driver does not change the Input
Buffer Size at all. In Windows CE 5.0, it will return false to make this API
compatible with Desktop Win32 API.

David Liao

"Bryan Gan" <BryanGan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5DEFA4FF-0532-49B1-A266-89EBEAE3D381@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

  • Re: OpenNETCF Serial not working in my WinCE 5.0 device
    ... A framing error indicates that the parity or the byte size is wrong, ... send the data and check the current settings for the port you're sending it ... > StopBits: One ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Cant read from serial port after RedHat reboot
    ... >flowcontrol and parity. ... since you've already opened the port with the O_NDELAY flag. ... If we look at the c_iflag member, ... POSIX says that a termios ...
    (comp.os.linux.misc)
  • Re: Xilinx ISE Inferred block rams
    ... but I write them with zero values so the port isn't undefined. ... parity bits but the write port output parity bits are unused. ... I tend to skip the post-translate simulation in favor of live testing except ...
    (comp.arch.fpga)
  • Re: 1 serial port 2 parity types? MFC based app needs assistance.
    ... Key here is that changing the parity is trivial: ... not need to close/reopen the port at all. ... CHARACTER IS PLACED IN THE OUTPUT REGISTER. ... The reciever is always receiving ODD parity. ...
    (microsoft.public.vc.mfc)
  • Re: RS232 Anyone???
    ... Public Function IsPortAvailable(ByVal port As String) As Boolean ... .StopBits = stopBits ... Catch ex As Exception ... Public Sub ReadComPort(ByVal Sender As Object, ...
    (microsoft.public.dotnet.languages.vb)