$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
my login script page is not working on remote computers
hi my login is working on my computer, but when i tried 2 computers from 2 different locations, they
[function.file]: failed to open stream: No such file or directory
Okay I wrote this little script to upload a csv file that is located on my webhosts server to a mysq
Access website from only 1 computer...?
One of my customers wants his website to only be accessed by people in which they bought the website
Functions Not Loading Into Div
I had some help doing some of this but what I'm trying to do is get my functions to retrieve its val
Help If user voted, block them
On my Prayer request site, i let users Click a button to Pray for somone that has posted a pray, i g
php mysql script to find record
Hi,
Currently I have a simple table with 4 columns. A, B, C, D
If I want to find all
making web pages for accounts
Hello, I would like to make pages for accounts on my website im making (its not a real website..im j
How to add advertisment on top of videos
Hello,
I was told that i should find the answer for this problem in this forums.
I searched a
Run function every 5 mins ??
I have a function PostMessage()
How can I run it every 5 mins ??
Simultaneous select/update/insert
Hi
How would I need to go about when 2 users update a single row simultaneous? And how would