Re: Serial port problem using pocket pc emulator

From: Floyd Burger (floydburger_at_adelphi.not)
Date: 02/29/04


Date: Sat, 28 Feb 2004 19:07:35 -0700

You said:
> First i run this example uinsg window application and its fine and after
> that i tried to run this example using smartdevice application. i have
> pocket pc 2002 emulator. when i try to open port it gave me that error

So, whichever platform shows the error doesn't have a COM4. Your emulator
(and I'm assuming that the emulator is where the exception is raised from)
is probably mapping the PCs COM4 to it's own COM1 or COM2. Try opening one
of those ports. If you're using the emulator from Visual Studio, go to its
configuration dialog ( Tools | Options | Device Tools ) and check the
Hardware tab of the configuration dialog. On mine, that only shows "Serial
Port 1" and "Serial Port 2", which can be mapped to physical ports on the
host PC. It sounds like you'll want to set "Serial Port 1" to COM4, and
open COM1 in the emulator.

-- 
"Ali" <anonymous@discussions.microsoft.com> wrote in message
news:009A811E-4F7F-4C3D-A0B8-D33266E479E1@microsoft.com...
> but that problem is not in windows application i am using the same port in
windows and its fine just in emulator


Relevant Pages

  • Re: call is blocked in recvfrom() and no further proceedings in Wi
    ... For transmitting UDP packets through emulator, ... >> In windows CE, I'm able to send a request but I'm unable to receive it. ... >>> My program has to send request to service through port 5070(in this port ...
    (microsoft.public.windowsce.embedded)
  • Re: Create Demo Application for Emaulator
    ... generate emulator images for our devices. ... two-line character LCD, no graphical display. ... You can emulate the serial port I/O using the hosting PC's serial port in ... because desktop PC's use drive letters, C:, D:, etc. while Windows CE does ...
    (microsoft.public.windowsce.app.development)
  • Re: Emulator serial communication problem
    ... Serial Port 1 to COM1, ... Emulator configures port as 38400/8/N/1. ... CloseHandle(hPort); ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Emulator serial communication problem
    ... Due to your advices I get my application on emulator worked, ... will give the ability to specify whatever port number ... "Serial Port 1" to None. ... CloseHandle(hPort); ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Emulator serial communication problem
    ... serial port (tested with emulator 5.3.0.26). ... Serial Port 1 mapping will map the serial port ... CloseHandle(hPort); ...
    (microsoft.public.windowsce.embedded.vc)

Loading