Good, Even Kalman Filter Inside, UNITE desktop and device

May 20, 2011 at 3:13 PM

But the serial port failed in wince, CreateFile failed, error 12.

And can not access GPSID in my device, I had configure it ok, and Microsoft.WindowsMobile.Samples.Location can work fine. 

So I simply put a M$ SerialPort control which auto named serialPort1 on the form, and write these code to receive data:

        void serialPort1_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e) {
            string s = "";
            while ((s = serialPort1.ReadLine()) != null) {
                interpreter.Parse(new NmeaSentence(s.TrimEnd()));
            }
        }

Now it work fine, but when no effect gps data received, such as in a room,  no more gps position changed event happen. So if the sensor enter gps shadow region, nothing will happen.

In the sample of ms gpsid,  it keep raise PositionChanged event per second, and no SpeedChanged, Altitude Changed, etc

I suggest  accord this idea,  less event simple handle but same power. 

thanks