Windows Mobile Developer Center >
Smart Device Development Forums
>
.NET Compact Framework
>
HP 6515 and GPS
HP 6515 and GPS
- hi i am have just got an HP 6515d with build in GPS
am trying to read from the GPS but no luck
have searched the forums and found some articles but still no luck
my try to read data from the gps is by using a simple SerialPort and wait for data
i dot know if you have to turn on the gps in some way first or what
am programming in
C# on .
NET CF 2.0
Pocket PC 2003 SE
is there sombody that has some experience with reading from the GPS on HP 6515
how to set up the serialport ?
private void button1_Click(object sender, EventArgs e)
{
object obj = comboBox1.SelectedItem;
if(obj != null)
{
port = new SerialPort((string)obj , 38400, Parity.None, 8, StopBits.One);
port.DataReceived += new SerialDataReceivedEventHandler(serialPort1_DataReceived);
port.ErrorReceived += new SerialErrorReceivedEventHandler(serialPort1_ErrorReceived);
port.DtrEnable = true;
port.Open();
btnStart.Enabled = false;
btnStop.Enabled = true;
startTime = DateTime.Now;
}
}
void serialPort1_DataReceived(object sender, SerialDataReceivedEventArgs e)
{
Invoke(new EventHandler(HandleGPSstring));
}
private void HandleGPSstring(object s, EventArgs e)
{
string buffer = port.ReadExisting();
textBox1.Text += buffer + "\n";
}
Answers
- i tryed with all possible baudrates and also using OpenNETCF 1.4 and the standalone version that is taken out of 2.0
but still nothing worked
Then i tried to update my pocket firmware
and wolla it worked using the SerialPort in .NET CF 2.0
All Replies
- I am successfully using OpenNETCF Serial library to work with GPS on 6515. In you scenario, try starting with reducing the port speed to 4800 - most GPS receivers use this settings.
- i tryed with all possible baudrates and also using OpenNETCF 1.4 and the standalone version that is taken out of 2.0
but still nothing worked
Then i tried to update my pocket firmware
and wolla it worked using the SerialPort in .NET CF 2.0 I am having the same problem with iPaq h5550 and NAVMAN iPAQ GPS jacket. In the eMbedded Visual C++ 4.0 it is working very well but in the visual studio 2005 I do not receive any data. I updated the iPAQ and GPS firmware but still nothing worked. Any idea?

