Gorkem

Hello all;

I am developing an RFID reader project, using VS2005 C#.NET on pocket pc emulator. My rfid reader device is connected on serial port of my computer. I can read and write to serial port of reader on pc application, but when I try to use emulator in my software, I fail to communicate.

My device is on COM2. I map it to serialPort1(I guess it means COM1) on emulator, then I write my software which tries to communicate with COM1, then I deploy it. It seems to open the port, but when I try to send message, the program freezes.

The weirdest thing is that, I can only open COM1 port on emulator, even if I map my device to serialPort2, or even if I don't map anything. I guess this means that mapping is not working.

I try my software by using debug. I make the mapping just after the emulator starts and before the deploying completes. So I have to make mapping for each trial, and just before deploying completes. May this cause the problem

I need urgent help, and I would be very pleased if you help me.



Re: Device Emulator General Serial Port Mapping Problem on Pocket Pc 2003 Emulator

Gorkem

I only need to learn how to map real com ports to virtual ports of emulator. How should I do it
My port opening code is:
SerialPort sp=new SerialPort("COM1",19200,Parity.None, 8,
StopBits.One);
sp.Handshake=Handshake.RequestToSend;
sp.DtrEnable=true;
Is this correct for emulator




Re: Device Emulator General Serial Port Mapping Problem on Pocket Pc 2003 Emulator

Barry Bond

You're close - configure the emulator's "Serial port 0" to point to your PC's COM port. Inside the emulator, "Serial Port 0" means "COM1:".

Barry





Re: Device Emulator General Serial Port Mapping Problem on Pocket Pc 2003 Emulator

Barrtee.s

Hai,

I am developing an RFID reader project same as yours, using VS2005 C#.NET on pc . My rfid reader device is connected on serial port of my computer. I cant read and write to serial port of reader on pc application. In your message "you had mentioned that rfid reader connected on serial port is reading" . I kindly request you to help me in this project. My email address is lbc@hotmail.co.in

Thanking you

Barrtee.s





Re: Device Emulator General Serial Port Mapping Problem on Pocket Pc 2003 Emulator

usagimys

Hi Gorkem,

I have the same problem as yours. I currently developing a program which need to communicate with RFID reader using Visual Studio C# 2005. I'm able to write the program in Windows Form. It's running successfully. But when i write it in Smart Device Application (Window CE) for PDA purposes, my program also freezes.I need advice from you.Hope you can help me. I really need this urgently.. Thank you. U can email me on "usagimys@gmail.com"