UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Position not working on GPS

    Scheduled Pinned Locked Moved Xiaomi Mi A2
    25 Posts 10 Posters 4.5k Views 1 Watching
    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.
      • E Offline
        embeddedmz @tchan
        last edited by embeddedmz

        @tchan It doesn't work wit uNav too. there's "Waiting for GPS" message that won't disappear šŸ˜ž

        Can someone tell me how to communicate with the Xiaomi Mi A2's GPS chip (serial port ?) or 4G Modem (AT commands ?) to check if it's working ?

        1 Reply Last reply Reply Quote 1
        • E Offline
          embeddedmz
          last edited by

          Can an admin rename this to "Position not working".

          Thanks.

          KenedaK 1 Reply Last reply Reply Quote 0
          • KenedaK Offline
            Keneda @embeddedmz
            last edited by

            @embeddedmz done

            2015-2023 : Meizu MX4 ā˜ ļøāš°ļøāœļø
            2023-2024 : Nexus 5 ā˜ ļøāš°ļøāœļø
            2024-***** : FPOS Fairphone 5 waiting UT for freedom šŸ˜‰
            šŸ‡²šŸ‡«šŸ‡¬šŸ‡§

            1 Reply Last reply Reply Quote 1
            • D Offline
              danilo748
              last edited by

              Hi everyone.
              In my case, the GPS takes the right position but after it freeze! the position doesn't change.
              I tried with uNav, PureMaps and SensorStatus.

              Can anyone help me? Thanks

              1 Reply Last reply Reply Quote 0
              • E Offline
                embeddedmz
                last edited by

                There is really no one who can give me information on how I can solve this problem? Should I contact Shouko (shoukolate) ? I will have a business trip soon and I would like to have a working GPS on my smartphone.

                AppLeeA M 2 Replies Last reply Reply Quote 0
                • AppLeeA Offline
                  AppLee @embeddedmz
                  last edited by

                  Hi @embeddedmz

                  The usual steps to make GPS works as expected is to go outside in open field to get best GPS coverage possible.
                  Restart your device.
                  Then launch uNav or PureMaps.

                  The first fix can take some time between a couple minutes to half an hour depending on your location.

                  While waiting, be sure the screen stays on. You can disable the delay to screen saving, allow the app to run in background or (That's what I do) start a route in PureMaps (it forces the screen on when navigating).

                  If this doesn't work then maybe the port has no working GPS or your device has a hardware issue.
                  (I didn't check the features available for your device)

                  If this is a porting issue then maybe contacting the porter will give you and idea of what can be expected.
                  But I guess if it doesn't work it won't be easy to fix and the porter will need some motivation to endeavor in such a challenge...

                  1 Reply Last reply Reply Quote 1
                  • M Offline
                    mschmids @embeddedmz
                    last edited by mschmids

                    @embeddedmz works on my Xiaomi Mi A2 with e.g. uNav. So porting can be ruled out. As known, only after using Waydroid, UT needs to be restarted, to access the GPS.

                    E 1 Reply Last reply Reply Quote 1
                    • E Offline
                      embeddedmz @mschmids
                      last edited by embeddedmz

                      @mschmids I didn't understand what you are saying.

                      Can I check if the GPS is working/responding by using the Terminal ?

                      C AppLeeA 2 Replies Last reply Reply Quote 0
                      • C Offline
                        cliffcoggin @embeddedmz
                        last edited by

                        @embeddedmz You are not helping yourself by failing to answer the questions that have been asked:
                        [1] Have you tried Puremaps or Unav?
                        [2] Have you left the phone outside for at least 20 minutes to get a signal?
                        [3] Have you looked at Sensor Status?

                        E 1 Reply Last reply Reply Quote 0
                        • AppLeeA Offline
                          AppLee @embeddedmz
                          last edited by

                          @embeddedmz
                          If you're using waydroid (and it seems you are), you need to reboot the phone in order to use the GPS with uNav or PureMaps.

                          And you also need to stay outside long enough to get a fix on your position (at least the first time after a reboot).

                          I hope it's more clear to you.

                          Note: If you search the forum, you'll find a command line to check the GPS. But it won't help unless you follow the step mentioned earlier or described by Cliffcoggin

                          1 Reply Last reply Reply Quote 0
                          • E Offline
                            embeddedmz @cliffcoggin
                            last edited by embeddedmz

                            @cliffcoggin

                            1. Yes I have tried Puremaps and Unav and GPS is not working
                            2. Yes I left my phone near an opened window (+ I put something in front of the phone so it prevents the phone from locking) and after 20mn uNav is not responsive (I tapped on the button that allows me to locate my position) I tried also PureMaps and it failed to use the GPS to locate my position
                            3. Do you mean if the GPS is enabled ? Yes of course it is.

                            Otherwise, why do I have to wait 20 minutes ?? Why it's different from an Android Phone ?

                            @AppLee I made sure to restart the phone. Since I have installed UT in December 2021, I have never succeed in using the GPS.

                            LakotaubpL C MoemM 3 Replies Last reply Reply Quote 0
                            • LakotaubpL Offline
                              Lakotaubp @embeddedmz
                              last edited by

                              @embeddedmz Sensor Status is an app avilable in the OpenStore. using it will tell younstraight away if GPS is working. Using it on my OP5 comes back as:
                              source statue- no error
                              name-ubuntu
                              method-satalite

                              E 1 Reply Last reply Reply Quote 1
                              • C Offline
                                cliffcoggin @embeddedmz
                                last edited by

                                @embeddedmz Near an open window is not sufficient. The phone needs to be outside in the open air.

                                1 Reply Last reply Reply Quote 1
                                • MoemM Offline
                                  Moem @embeddedmz
                                  last edited by

                                  @embeddedmz said in Position not working on GPS:

                                  why do I have to wait 20 minutes ?? Why it's different from an Android Phone ?

                                  Android has A-GPS and we don't have that.

                                  Is currently using an Op5t
                                  Also owns an Op1, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

                                  1 Reply Last reply Reply Quote 2
                                  • E Offline
                                    embeddedmz @Lakotaubp
                                    last edited by

                                    @lakotaubp I got this : screenshot20220505_195146244.png

                                    1 Reply Last reply Reply Quote 0
                                    • E Offline
                                      embeddedmz
                                      last edited by

                                      Good news everybody. In sensor status, it displayed my position and then in uNav, I can locate my position in the map.

                                      Maybe sensor status unlocked something, I don't know

                                      Thank you all

                                      LakotaubpL 1 Reply Last reply Reply Quote 0
                                      • LakotaubpL Offline
                                        Lakotaubp @embeddedmz
                                        last edited by

                                        @embeddedmz Good news. Now mark as solved https://forums.ubports.com/topic/6311/how-to-ask-a-question-and-then-mark-it-as-solved please

                                        E 1 Reply Last reply Reply Quote 0
                                        • E Offline
                                          embeddedmz @Lakotaubp
                                          last edited by

                                          @lakotaubp However, GPS is not really usable in uNav or Puremaps, the location is not updated in real time, is this normal ? I ll restart the phone and check again.

                                          1 Reply Last reply Reply Quote 0
                                          • E Offline
                                            embeddedmz
                                            last edited by

                                            The sky is not very cloudy but sensor status fails too often to get the new location. I can locate myself from time to time but this is not practical for navigation.

                                            I don't know if this is normal.

                                            C 1 Reply Last reply Reply Quote 0
                                            • C Offline
                                              cliffcoggin @embeddedmz
                                              last edited by

                                              @embeddedmz Clouds have nothing to do with signal strength. GPS gets radio signals from satellites orbiting the earth which are unaffected by weather. Where are you testing GPS? High buildings, deep valleys, and dense forest can interfere with reception, which is why you were told three times to try it in an open space.

                                              Having said that, it is possible your phone simply does not work well with GPS under any circumstances. Personally I find Puremaps and GPS work well enough for my purposes on a Nexus 5.

                                              1 Reply Last reply Reply Quote 1
                                              • First post
                                                Last post