# Help needed for GPS!

#### digital

Joined Nov 26, 2007
11
hi guyz!
im currently working in GPS based project using ARM9(AT91RM9200)..
following is d output i get from GPS receiver...
UBlox
$GPRMC,162254.00,A,3723.02837,N,12159.39853,W,0.820,188.36,110706,,,A*74$GPVTG,188.36,T,,M,0.820,N,1.519,K,A*3F
$GPGSA,A,2,25,01,22,,,,,,,,,,2.56,2.36,1.00*02$GPGSV,4,1,14,25,15,175,30,14,80,041,,19,38,259,14,01,52,223,18*76
$GPGSV,4,2,14,18,16,079,,11,19,312,,14,80,041,,21,04,135,25*7D$GPGSV,4,3,14,15,27,134,18,03,25,222,,22,51,057,16,09,07,036,*79
$GPGSV,4,4,14,07,01,181,,15,25,135,*76$GPGLL,3723.02837,N,12159.39853,W,162254.00,A,A*7C
$GPZDA,162254.00,11,07,2006,00,00*63 in the 1st line$GPRMC,162254.00,A,3723.02837,N,12159.39853,w
i need to collect only
3723.02837
12159.39853
these latitude and longitude values....
plz tell how to extract only these two datas from the 1st whole line..

please tell that c routine alone...

Gps receiver rxd,txd pins are connected to ARm rxd,Txd
thro Portb usart1

Digital

#### nanovate

Joined May 7, 2007
666
look at the gettok() function. Basically you need to write a program that parses the string.

#### digital

Joined Nov 26, 2007
11
Sir,
im new to this project.. can u tell me in detail... do u mean to convert all received datas into string.. plz help

#### Arm_n_Legs

Joined Mar 7, 2007
183
Append the incoming characters into a string and parse for $GPRMC. Once$GPRMC is detetced, count the number of commas. Your requred 1st data is between the 2nd and 3rd comma.

#### digital

Joined Nov 26, 2007
11
Thanks for the masters helped me.... let me try and soon post the result...
Thanks once again