$GPRMC and NMEA how to extract from report
Posted on
16th Feb 2014 07:03 pm by
admin
Hi There,
Im a little bi lost and not sure where to start with this one, ive got a small gps receiver which im
polling over a serial connection, each time i poll the device i get a load of rubbish back like this...
Code: $GPRMC,223450.000,A,5310.5785,N,00226.2042,W,0.0,25.8,291109,,,A*49
$GPGGA,223450.000,5310.5785,N,00226.2042,W,1,06,2.1,22.3,M,59.1,M,,0000*7D
$GPVTG,25.8,T,,M,0.0,N,0.0,K,A*32
$PMST200,00,204*1E
$PMST200,00,204*1E
$PMST200,00,204*1E
$PMST200,??,204*1E
$PMST200,??,204*1E
$PMST200,??,204*1E
$PMST200,??,204*1E
$PMST200,??,204*1E
$PMST200,??,204*1E
$GPGLL,5310.5785,N,00226.2042,W,223450.00,A,A*73
$GPGSA,A,3,02,04,05,07,08,10,,,,,,,4.5,2.1,4.0*39
$PMST200,??,204*1E
$PMST200,??,204*1E
$PMST200,??,204*1E
As they are never ever in the same order i cant really use reg_exp to get what i want, basically im
trying to capture the following and then use split to break them down further and insert into a DB
Code: $GPRMC,223450.000,A,5310.5785,N,00226.2042,W,0.0,25.8,291109,,,A*49
how can i just get it to extract that line and nothing else unless i ask it to????
the output from the serial devic come is extract using this
Code: $read = $serial->readPort();
than i just echo read etc etc and get my text which is further up, any ones help
or suggestions would be brill...
thanks
No comments posted yet
Your Answer:
Login to answer
177 46
Other forums
While Problem
i am having a problem with a while statement here is the code
Code: [Select]<?php
sess
dropdown menu
Hello everbody,
I am php newbie.
I need to develop a program that once click the drop do
Frustrated php Newbie
First off, I am pretty much a PHP nub. I can read and understand the language (most of the time) so
Need a Timecode Class...
Not a Time Stamp, Time Code. Format is a bit different. HH:MM:SS:FF where FF is Frames. I dont re
Certain files upload, while others do not
I want to read the data from an uploaded file. Not sure why, but it only uploads for certain files.
Help with form post data and arrays
Hi all,
I am new to this forum... It has been awhile since i have worked with arrays, and i a
Hyperlink is adding an extra gap to variable
Hi, here's my problem..
I have a php generated page with a hyperlink which opens in a new win
insert PHP code into function
Hi,
I'm having problems when trying following:
I have:
Code: [Select]createBar("Do
login and redirect
hello! can someone help me.. can you give me an idea.. I want to make a login page and redirects it
Help uploading .JPG
I have a problem with upload images when the ending is .JPG capitalized.. I really don't know what c