Navigation

    LILYGO

    • Register
    • Login
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    GPS acquisition doesn't work on T-A7670E with GPS

    Technical Discussion
    3
    5
    618
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      Venta13 last edited by

      Hello
      I cannot find a way to acquire GPS data from my T-A7670E board (equipped with GPS)

      When I use examples available on github, I get the error that my "modem does not exist" when the following modem is selected : #define TINY_GSM_MODEM_A7670

      Github example I am using is : https://github.com/Xinyuan-LilyGO/LilyGO-T-A76XX/blob/main/examples/GPS_BuiltIn/GPS_BuiltIn.ino

      When I replace the modem by #define TINY_GSM_MODEM_SIM7600, all functions work fine (including 4G communication) but GPS data remains unaccessible (attempts to run modem.getGPS() function but data never comes)

      Can somebody let me know a "working" sketch using GPS on T-SIM A7670E?
      The one on github does not work!!

      Thanks a lot
      Guillaume

      V 1 Reply Last reply Reply Quote 0
      • V
        Venta13 @Venta13 last edited by

        After some more debugging it appears that my GPS simply does not enable when running the modem.enableGPS() function.

        Here is my modem name : Modem name : A7670E-FASE
        Here is what I have in the AT command dump :
        AT+CGPS=1

        ERROR

        In the "Builtin_GPS" example provided on Github, the modem.enableGPS function is used with a PIN int passed as argument :

        modem.enableGPS(MODEM_GPS_ENABLE_GPIO)

        however when I compile the code with the PIN passed as an argument, I receive the following error "error: no matching function for call to 'TinyGsmSim7600::enableGPS(int)'

        So everything seems like the GSM_SIM7600 is not the right modem... but even looking in the TinyGSM library I cannot find the modem for T-SIM A7670...

        Can someone please help??

        V 1 Reply Last reply Reply Quote 0
        • V
          Venta13 @Venta13 last edited by

          Hello all,

          It seems I am alone trying to debug my issue 😉

          I have found at least one of the source of the problem, which was coming from the fact the TinyGSM library was actually updated only for T-SIM A76XX series, available on github but NOT on the TinyGSM library Github as one could guess.

          The updated TinyGSM library is located in one of the subfolders of the T-SIM A76XX series github. Accessible through download and erase of the library distributed over internet. A regular update of the library would be x1000 times better and would have saved me at least 4h of chaotic troubleshooting 😞

          However, my GPS does not work yet (even if this time, the enable function works correctly and the examplary code provided runs without error...)

          Any clue on best parameters to use and optimize GPS acquisition would help ...

          Guillaume

          teastain2 1 Reply Last reply Reply Quote 0
          • teastain2
            teastain2 @Venta13 last edited by

            @venta13 Hi! This site is mostly monitored by me, a user interested in ESP32 and I don't know your board.
            You can try creating An Issue over on their GitHub repository or try emailing the LilyGO sales office in China.
            LilyGO is infamous for constant updates to the product with little or confusing documentation.
            -Terry

            1 Reply Last reply Reply Quote 0
            • Z
              zanemcmorris last edited by

              Hi! I am encountering the same issue! I have replaced the # defined for the modem from TINY_GSM_MODEM_A7670 to TINY_GSM_MODEM_SIM7600, which got the sketch to compile, but the modem doesn't get any GPS reading. This post is the number one result on Google, but sadly, there isn't much help here yet. As you've pointed out, I have a feeling it's a TinyGSM library issue, but I am kinda lost on debugging it from here. It'd be great if someone got the GPS working and found this post sometime in the future...

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB | Contributors