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.
-
@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 -
So does the GPS on the PyTrack communicate via a WiPy UART?
-
It uses I2C to communicate
-
@seb Thanks. Is there a list of I2C commands that the GPS module supports?
-
-
@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 Got it. Thanks!
-
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?
-
I see no mention of UART in the linked code
-
@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?
-
@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.
-
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 -
@seb Ok. Thanks for the confirmation. I appreciate the help.
-
@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
-
@andrethemac Thanks for letting me know! Your library is just what I was looking for.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login