Re: Mapping ports in emulator - PPC is deaf - addendum!



Mapping serial port 0 to your PC's COM1 sounds like this right
configuration. Inside the emulator, serial port 0 is known as COM1:.

One thing you might try doing is explicitly setting baud rate and character
length for the serial port from inside the emulator. There is a known bug
in the emulator where the serial port driver and emulated serial port
hardware don't agree on their initial states. If this doesn't work, please
post a message to the Device Emulator General forum at
http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=76&rw=true&SiteID=1
and we'll help you from there.

Barry

<PaulRAndrews@xxxxxxxxx> wrote in message
news:1157720460.042809.212720@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I understand the ports in the PPC now after browsing the registry.

Still don't understand why I can write out of COM1 but not read.

Paul

PaulRAndrews@xxxxxxxxx wrote:
Scenario:
developing application for PPC 2003 SE/WM5.0 in VS 2005 which uses
a serial port on the PPC.
I have mapped serial port 0 to COM1


Problems:
Three ports are listed using SerialPort.GetPortNames()
COM1 -- ok
COM3 -- ok
COM9 -- doesn't exist?!?!?!?

There are four ports on my PC
COM1 -- Hardware Serial Port
COM2 -- USB-To-Serial
COM3 -- Internal Modem
COM4 -- USB-To-Serial

When I connect two instances of Hyperterminal together (COM2 &
COM1), I can communicate fine.

I close one instance (COM1) of HyperTerminal and debug the
application in the emulator.

The program running in the emulator sends data to the HyperTerminal
session fine but the DataReceived event never fires when going the
other way.

Also, the check box to create text console window on COM1 is
disabled in the emulator File->Configure menu not the
Tools->Options->Device Tools menu in the IDE (the settings are not
carried across from the IDE).

Any assistance in configuring would be greatly appreciated!!!!

Paul.



.



Relevant Pages

  • Re: New-bus unit wiring via hints..
    ... to ensure ACPI kept sio0 as COM1, ... COM1 is at 0x3f8 is wrong, and to use a different, yet again arbitrary ... Just as long as we ship a hints file to keep us old ... port should be at 0x3f8, and the second serial port should be at 0x2f8, then ...
    (freebsd-current)
  • Re: Unable to open Serial Port
    ... What exactly is "showing COM1 is available"? ... Did you look in the registry? ... Actually tobey suggested that by just adding the support for serial port ... catalog view doesn't actually give you a serial port on the target device ...
    (microsoft.public.windowsce.app.development)
  • Mapping ports in emulator - PPC is deaf!
    ... a serial port on the PPC. ... I have mapped serial port 0 to COM1 ... The program running in the emulator sends data to the HyperTerminal ...
    (microsoft.public.pocketpc.developer)
  • Re: Headless Device
    ... I want to know How I should see the COM1 outputs!!! ... > debug serial port). ... > The remote console has nothing to do with the debug serial port: ... I want to know how to redirect all the input and output to a serial ...
    (microsoft.public.windowsce.platbuilder)
  • Re: How connect the Emulator with a serial interface
    ... You want to run your device-side program in the emulator ... and see the data on the PC that is hosting the emulator? ... you'll have to connect the serial port that the emulator has taken ... COM1, then you'll have to cable from that COM1 port on the PC to some other ...
    (microsoft.public.dotnet.framework.compactframework)

Loading