$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
Sort a two dimensional array.
Hi. I've set up a two dimensional array that reads as follows:
Code: $modifiedData = array(
How to secure my login data to my database?
Hi there,
It may be a stupid question but I don't know how to secure my login data to my data
Confusing Functions
So, I've been reading up on Functions and I like them! However, I need some help using variables in
how do i display data on a page from mysql
1 - do i use this code at the top of each of my page i wish to only alow access if there as been a s
Stats of viewers
Hello. I have a website in php and people can login. I want to make an admin control panel where u c
How do I get the row number from from an sql table query
Hi all
I have a table that I query and it returns a number of rows.
mysql_num_rows($query)
MYSQL INSERT ID NOT WORKING
Code: $id = mysql_insert_id();
header("Location: ./?view=$id");
Why $id pulling blan
Collecting AOL Search Terms
I am attempting to collect AOL search terms. I know the code is correct (it works for google, bing,
Help a newbee save my job !
Hey guys i am dying here i am new to php and would like for someone to help me with this problem
Exporting new records
Trying to figure out the best way to set this up.
People register my site.
Their prof