try to retrive data my own application.

Bild von rajiv.birari

Hello Friends,

I implement GPS logger facilty in my own application using BT-Q1000x device.

I am trying to read row data  from device.Application using dot net code -

                string data = serialPort1.ReadExisting();
                string[] strArr = data.Split('$');
                for (int i = 0; i < strArr.Length; i++)
                {
                    string strTemp = strArr[i];
                    string[] lineArr = strTemp.Split(',');
                    if (lineArr[0] == "GPGGA")

I got row data like this -

$GPGGA,100339.271,,,,,0,0,,,M,,M,,*44
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,1,1,00*79
$GPRMC,101659.271,V,,,,,0.00,0.00,221209,,,N*49

$GPGGA,101700.271,,,,,0,0,,,M,,M,,*4B
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,1,1,00*79
$GPRMC,101700.271,V,,,,,0.00,0.00,221209,,,N*44

$GPGGA,101701.271,,,,,0,0,,,M,,M,,*4A
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,1,1,00*79
$GPRMC,101701.271,V,,,,,0.00,0.00,221209,,,N*45 etc.

etc.

Is this right data?

if it is right data then how i can got parameter from this like Latitude,Longitude and required parameter.

Please help me.

Regards

RKB

Bild von mdeweerd

Hi Have a look at this C#

Hi

Have a look at this C# code sample.  The NMEA protocol specification has to be bought but there is a free description.

Where can we get your application?

Regards

Mario

Kommentar hinzufügen

(If you're a human, don't change the following field)
Your first name.
(If you're a human, don't change the following field)
Your first name.
Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <br>
  • Zeilen und Absätze werden automatisch erzeugt.
  • Use the special tag [adsense:format:slot] or [adsense:format:[group]:[channel][:slot]] or [adsense:block:location] to display Google AdSense ads.
  • Images can be added to this post.

Weitere Informationen über Formatierungsoptionen