Problem with opening COM2

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Tony (tonytony_cch_at_hotmail.com)
Date: 05/04/04


Date: Tue, 4 May 2004 16:57:56 +0800

Hi all,

Currently I am starting to develop a project that use the COM port to
communicate. I had written a program to open COM1 and COM2, by calling the
CreateFile API. However, I can only open COM1, but cannot open COM2, and
the GetLastError return 55 which stands for "The specified network resource
or device is no longer available". I am using Visual Studio 2003 in Windows
2000 Server, windows CE Emulator 4.1 for testing.
I have searched the web for more information, it just look like something
else in the CE already has the port open.
Can anyone tell me how to solve this problem?
Thanks in advance.

Regards,
Tony



Relevant Pages

  • Re: Listening to a rs232 com port ?
    ... you need two more com port, on the same pc or on another one ... So you cannot open com1 again. ... You deconnect the cable which arrive in com1 and connect it to com2. ... You connect a null modem cable between com3 and com1. ...
    (alt.comp.lang.borland-delphi)
  • Re: Detecting the modem
    ... ActiveSync commonly tries to open COM1 when it finds a serial cable attached ... You might verify that it isn't keeping the port open. ... >> Our hardware has a modem connected to one of the UARTs in the ARM core. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Do I need to build a new platform (creat new nk.bin)
    ... but not via the port you're connected to. ... happens" problem is that you've assumed that the port marked COM1 on your CE ...  If you don't know anything about Windows ... To enable both COM1 and COM2, you need to include the components to support ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Connecting External Serial Modem to Windows Emulator( PB )??
    ... used as a debugging port by PB. ... with regards, ... > I am newbie to Windows CE world. ... > However if I try to open COM1: form program, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Problem with opening COM2
    ... You should use the remote registry edit to confirm the COM2 is OK. ... -= Your eFriend, BulaConsultant=- ... I had written a program to open COM1 and COM2, ...
    (microsoft.public.windowsce.app.development)