Emulator Serial

  • Thread starter Thread starter Joseph Byrns
  • Start date Start date
J

Joseph Byrns

I am trying to use the serial port (wm5.0 PPC device, CFV2 serial stuff) on
the emulator. I have configured the emulator as follows but get the
following results:

Emulator COM0 maps to PC COM1 - on opening port I get "The Port 'COM0:' does
not exist"
Emulator COM2 maps to PC COM1 - on opening port I get "The Port 'COM0:' does
not exist"

Emulator COM1 maps to PC COM1 - Now I get comms but it seems something in
the emulator is already using that port as it is sending various strings to
emulator COM1 typically: "+SL_TxIntrEx", which I assume is something to do
with ActiveSync on the emulator.

this is the line that throws the port does not exists error:
Port = New System.IO.Ports.SerialPort("COM2", 9600, IO.Ports.Parity.None, 8,
IO.Ports.StopBits.One)

Port.Open()



I have tried it with and without a colon after COM2.



Any ideas how I can get this to work?
 
Problem solved what I was thinking of as the emulator COM1 was in fact the
PC COM1 and vice versa. Having looked through the emulator registry it
became obvious that there was no COM0 or COM2 on the emulator.
 
Actually I am mistaken, I have the COM0 option in the emulator set to COM1
and my application opens com port 1. The serial cable is physically plugged
into COM1 on the PC (the only comm port available). So I don't know where
COM0 comes in to this at all. All I know is that it works but don't know
why.
 
Back
Top