try to retrive data my own application.

rajiv.birari's picture

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

mdeweerd's picture

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

Post new comment

(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.
The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <br>
  • Lines and paragraphs break automatically.
  • 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.

More information about formatting options