Emulator Serial

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?
 
J

Joseph Byrns

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.
 
J

Joseph Byrns

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top