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.
      • LakotaubpL Offline
        Lakotaubp @embeddedmz
        last edited by

        @embeddedmz If you are running inside a container (WayDroid,Libertine) I would check the docs that a connection can be made to the location services on your phone. I am really not sure.

        1 Reply Last reply Reply Quote 0
        • arubislanderA Offline
          arubislander
          last edited by

          Otherwise, I'd it is the first time using location after a boot, it might just take a while to get a fix. It might even not be able to do so if you are not outside, under unobstructed skies.

          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
          Happily running Ubuntu Touch
          Google Pixel 3a (20.04 DEV)
          JingPad (24.04 preview)
          Meizu Pro 5 (16.04 DEV)

          1 Reply Last reply Reply Quote 1
          • 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
                                              • First post
                                                Last post