Community
cancel
Showing results for 
Search instead for 
Did you mean: 
hlim12
Novice
993 Views

edison gps longitude latitude parsing..

Jump to solution

hi, These days, I am developing a GPS with Intel Edison. However, there are some problems.

Is there a way I want to import only the GPS latitude and longitude value?

$GPGGA,113731.000,3509.2693,N,12805.5830,E,1,5,2.37,49.0,M,23.9,M,,*6D

$GPGSA,A,3,02,193,07,05,29,,,,,,,,2.55,2.37,0.94*3B

$GPGSV,3,1,11,193,78,059,19,02,73,118,16,05,64,332,17,13,54,200,*40

$GPGSV,3,2,11,29,34,298,17,06,28,126,,30,25,090,,20,23,281,*7D

$GPGSV,3,3,11,15,22,221,,07,20,062,22,19,01,166,*45

$GPRMC,113731.000,A,3509.2693,N,12805.5830,E,0.00,354.34,030816,,,A*60

"3509.2693, N, 12805.5830,E" I want to bring value..

eclipse and c++ using..

I will thank you attach the answer.

1 Solution
idata
Community Manager
66 Views

The easiest way is to use gpsd:

(1) Setup opkg to access AlexT's Repo:

open /etc/opkg/base-feeds.conf with nano and edit it:

src/gz all http://repo.opkg.net/edison/repo/all http://repo.opkg.net/edison/repo/all

src/gz edison http://repo.opkg.net/edison/repo/edison http://repo.opkg.net/edison/repo/edison

src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32 http://repo.opkg.net/edison/repo/core2-32

(2) run opkg update

(3) opkg install gpsd

To test the gps:

(4) opkg install gps-utils

(5) disable the gpsd systemd service (don't know if this is really important):

systemctl stop gpsd.socket

systemctl disable gpsd.socket

(if you want to restart them:

systemctl enable gpsd.socket

systemctl start gpsd.socket

)

(6) start gpsd with your serial port, example:

gpsd /dev/ttyMFD1 -F /var/run/gpsd.sock

(7) try gps

cgps -s

I used gpsd with node.js: npm install node-gpsd

For C language you can use this links:

http://stackoverflow.com/questions/32000328/libgps-c-code-example gps - libgps C code example - Stack Overflow

http://catb.org/gpsd/client-howto.html GPSD Client HOWTO

Have Fun

Flo1991

View solution in original post

3 Replies
idata
Community Manager
67 Views

The easiest way is to use gpsd:

(1) Setup opkg to access AlexT's Repo:

open /etc/opkg/base-feeds.conf with nano and edit it:

src/gz all http://repo.opkg.net/edison/repo/all http://repo.opkg.net/edison/repo/all

src/gz edison http://repo.opkg.net/edison/repo/edison http://repo.opkg.net/edison/repo/edison

src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32 http://repo.opkg.net/edison/repo/core2-32

(2) run opkg update

(3) opkg install gpsd

To test the gps:

(4) opkg install gps-utils

(5) disable the gpsd systemd service (don't know if this is really important):

systemctl stop gpsd.socket

systemctl disable gpsd.socket

(if you want to restart them:

systemctl enable gpsd.socket

systemctl start gpsd.socket

)

(6) start gpsd with your serial port, example:

gpsd /dev/ttyMFD1 -F /var/run/gpsd.sock

(7) try gps

cgps -s

I used gpsd with node.js: npm install node-gpsd

For C language you can use this links:

http://stackoverflow.com/questions/32000328/libgps-c-code-example gps - libgps C code example - Stack Overflow

http://catb.org/gpsd/client-howto.html GPSD Client HOWTO

Have Fun

Flo1991

View solution in original post

hlim12
Novice
66 Views

thank you!!..

Intel Edison is for beginners... i sad..

I did not exactly understand the answer above.

Um... Can you explain in more detail?

Installation instructions,

src / gz all http://repo.opkg.net/edison/repo/all

src / gz edison http://repo.opkg.net/edison/repo/edison

src / gz core2-32 http://repo.opkg.net/edison/repo/core2-32

What is that to them?, How to install? etc.

idata
Community Manager
66 Views

Refering to this: http://alextgalileo.altervista.org/edison-package-repo-configuration-instructions.html Edison Package Repo Configuration Instructions

nano /etc/opkg/base-feeds.conf

nano (a simple texteditor) opens the file, edit the file to:

src/gz all http://repo.opkg.net/edison/repo/all

src/gz edison http://repo.opkg.net/edison/repo/edison

src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32

save the changes and exit.

(2):

opkg update

... and so on

Flo1991

Reply