I have written a program in .NET that listens to a particular Serial Port and processes the data that is being received. I wrote a test program using serialport control and my program was working fine. When i run our program in Windows Mobile with the original device, the data received was garbled. The same device when connected with PC produced the desired output.
In mobile I connected our device with bluetooth.
I recive the following garbled string : "?09?D0??6D?
I have used the following code :
Dim WithEvents port1 As SerialPort = _
New SerialPort("Com2", 19200, Parity.Even, 7, StopBits.One)
port1.Open()
port1.Open()
strcmd="09RD00000123"
port1.Write(strcmd, 0, strcmd.Length)
System.Threading.Thread.Sleep(70)
strReadSegment0 = port1.ReadExisting