Google Answers Logo
View Question
 
Q: Accessing serial ports under Windows CE ( No Answer,   2 Comments )
Question  
Subject: Accessing serial ports under Windows CE
Category: Computers > Operating Systems
Asked by: uwillal-ga
List Price: $50.00
Posted: 24 Nov 2003 05:23 PST
Expires: 25 May 2004 04:06 PDT
Question ID: 279984
How do I access a serial port under Windows CE? The Visual C++ code
accesses the comm port under Windows 2000.  When the code is ported
to the Windows CE emulator, it compiles and links but doesn't connect.
 Instead the connecting method "FileConnect", returns
"INVALID_HANDLE_VALUE".

Clarification of Question by uwillal-ga on 24 Nov 2003 05:28 PST
The method used to connect to the serial port is NOT "FileConnect" but
rather "CreateFile" - sorry for the confusion/
Answer  
There is no answer at this time.

Comments  
Subject: Re: Accessing serial ports under Windows CE
From: mvv-ga on 11 Dec 2003 15:03 PST
 
It could be easier to answer if you provided some error code or exact
statement and parameters you passed to CreateFile.

Never the less you can check:

1) are serial ports defined (enabled) on your emulator
2) maybe some other process is using serial port in question
3) serial port name must end with ':' on WinCE e.g. "com1:" and not
"com1" which works on 'regular' windows.

Hope some of this helps.
Subject: Re: Accessing serial ports under Windows CE
From: vaswdev-ga on 24 May 2004 13:33 PDT
 
I am having a similar problem.  I am trying to write an application
that will communicate with a serial peripheral via the serial port and
I can open the port just fine, but when I send data over it, I get the
ActiveSync connect string interspersed with my data.  How do I disable
ActiveSync while I am trying to use the port?

Thanks!

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy