Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Pytrack GPS timeout #120

Open
thomasliebig opened this issue Jan 8, 2018 · 2 comments
Open

Pytrack GPS timeout #120

thomasliebig opened this issue Jan 8, 2018 · 2 comments

Comments

@thomasliebig
Copy link

I'm running MicroPython v1.8.6-849-fcbbfe3 on 2018-01-03; FiPy with ESP32 with a
Pytrack (pytrack_0.0.8.dfu).

GPS just returns timeout with this script

from L76GNSS import L76GNSS
from pytrack import Pytrack
import gc

py = Pytrack()
l76 = L76GNSS(py, timeout=60)
print ("Starting GPS")
while(True):
     coord = l76.coordinates(debug=True)
     print("{}".format(coord))
     gc.collect()

In flash/lib directory I have the attached py files pytrack-lib.zip
(These are not the latest ones, as the current pytrack.py using pycproc.py gave some error)

  • pytrack.py
  • LIS2HH12.py
  • L76GNSS.py
@danieleftodi
Copy link

try:
l76 = L76GNSS(py, timeout=10)

@danieleftodi
Copy link

and add a "sleep" after gc.collect() ... like

gc.collect()
time.sleep(2)

peter-pycom added a commit that referenced this issue May 4, 2020
[pybytes] updated to v1.4.0 (pymesh integration and coap client)
X-Ryl669 pushed a commit to X-Ryl669/pycom-micropython-sigfox that referenced this issue May 12, 2023
[pybytes] updated to v1.4.0 (pymesh integration and coap client)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants