LEDE gps (Method to capture serial data from /dev/ttyACM0)

Good morning!
I have a gps (VK-172 GPS dongle) LEDE recognizes it perfectly
cat / dev / ttyACM0
I can see all the NMEA data
how can I save this data in a file?
Then I would read them in google map, I can do?
I thought to save them in the www folder, and (html?) And see them on the map?

Sorry I'm new!
Thank you
Allin

  1. install gpsd + gpsd-clients
  2. "man gpxlogger" should get you started
2 Likes

Thanks Tmomas! But I think there is a problem!

root@LEDE:~# gpxlogger
gpxlogger: no gpsd running or network error: 2, unknown error
root@LEDE:~# gpsd /dev/ttyACM0 -F /var/run/gpsd.socket
root@LEDE:~# gpxlogger

<?xml version="1.0" encoding="utf-8"?>



2017-03-24T19:45:11.000Z

Segmentation fault

Good morning!
This is my configuration for the gpsd..ma maybe something wrong?

config gpsd 'core'
option device '/dev/ttyACM0'
option port '2947'
option listen_globally '1'
option enabled 'true'
Allin

Opps!!I I had to reboot the system seems to work ... now I see the data flowing on the screen ... but where the data is saved? and as I can see in real time?
Thanks so much

gpxlogger
This program collects fixes from gpsd and logs them to standard output in GPX, an XML profile for track logging.

-> redirect stdout to file.

1 Like

Thank you so much Tmomas for your information
would you be so kind as to tell me how I can save these files
I do not know much of the world (Lede / OpenWRT)
Allin

I found a small solution:

gpxlogger -d -f / www / temp_gps / gpslog

For the moment I feel that way

Does the GPS support PPS output and are you using it to for ntpd?

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.