GPS time from PyTrack
-
Is there a way to use the GPS time to set the RTC? I want to be able to log data from remote locations with no wifi access. I want the unit to be able to set the RTC to the correct time upon reset.
-
@andrethemac Thanks for letting me know! Your library is just what I was looking for.
-
@jmpratt I've had the same question, and was looking for a library that didn't use to much memory. So I wrote it myself (based upon the default library and @Neuromystix idea's. https://github.com/andrethemac/L76GLNSV4
best regards
-
@seb Ok. Thanks for the confirmation. I appreciate the help.
-
The
L76GNSSlibrary provided by pycom reads the NMEA sentences via I2C, there is no UART involved. The linked to code usesL76GNSSto get the sentenaces, and thenmicropyGPSto parse them
-
@jmpratt said in GPS time from PyTrack:
Anyone know of a way to contact an author on GitHub?
Raise an issue, then the owner will be notified.
-
@seb It looks like he's using both the micropyGPS and L76GNSS modules, which doesn't make any sense to me. Here he talks about seeing output on a UART with a PyTrack and the micropyGPS module: https://github.com/inmcm/micropyGPS/issues/7
Is he using the L76GNSS module to pull a NMEA sentence and then send it to the micropyGPS module for handling?
Anyone know of a way to contact an author on GitHub?
-
I see no mention of UART in the linked code
-
Ok, I'm confused. Here's a link for a project using the PyTrack with the micropyGPS module: https://github.com/ozeta/iot-gps-receiver. If the PyTrack uses I2C to communicate with the GPS chip, how can micopyGPS communicate with the chip via the UART?
-
@seb Got it. Thanks!
-
-
@seb Does Pycom have any example code that uses the GPS on the PyTrack? All I can find is the code that uses the accelerometer.
-
-
@seb Thanks. Is there a list of I2C commands that the GPS module supports?
-
It uses I2C to communicate
-
So does the GPS on the PyTrack communicate via a WiPy UART?
-
@jmpratt
use https://github.com/inmcm/micropyGPS library
and there you have possibility to aqquire time from GPS
and next it is simple to set it to thertc.inithttps://docs.pycom.io/chapter/firmwareapi/pycom/machine/RTC.html#rtcinitdatetimenone-sourcertcinternalrc