I have used the code below to read rfid tag values.
try
{
if (serialPort1.IsOpen) serialPort1.Close();
serialPort1.PortName = "COM25";
serialPort1.BaudRate = 9600;
serialPort1.DataBits = 8;
serialPort1.ReceivedBytesThreshold = 5;
serialPort1.Handshake = Handshake.None;
serialPort1.Open();
lblStatus.Text = "Serial Port: Connected";
}
catch (Exception ex)
{
lblStatus.Text = "Serial Port: Unable to Connect";
}
The above code is working for windows application but when i use the same code in windows mobile emulator it is saying unable to connect serial port. Can someone please help me out?