Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt Positioning
Forum Updated to NodeBB v4.3 + New Features

Qt Positioning

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 2 Posters 1.7k Views 1 Watching
  • 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.
  • W Offline
    W Offline
    wincc
    wrote on last edited by
    #1

    Hi,

    I have successfully made an android c++ application that logs gps coordinates & timestamp to an sqlite file every second, however it seems like it misses data for 8-10 seconds randomly ( every 2-3 minutes). BUT if I debug application with usb cable connected it does not miss anything????, I have disabled power saving on phone with no luck.

    any ideas ?

    (I´m using Qt 5.3)

    //wincc

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      welcome to forum. Difficult to predict what is happening here since you are telling that USB debug is fine. I suggest you start logging those data and see the time duration. I suspect some logic issue here.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0
      • W Offline
        W Offline
        wincc
        wrote on last edited by
        #3

        Update.

        I have made some "debugging".... if I change my HTC One Mini setting "Screen timeout" to 1 hour and start application I do not get any 10 second "drop" of updating only a 1 second now and then,if the screen timeout and get black there are 10 second drops again... As I can see the positionUpdated() slot does not get called when these "timeouts" occur. -- how do I get my application to get "highest priority" ? it seems like my HTC does something when screen goes black.
        If I do not get any 10 second timeouts my GPS map looks very accurate.

        //wincc

        1 Reply Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by
          #4

          This may be the optimisation done by Android OS. Generally these are mobile device centric features. When the screen is off, fair assumption is that some things need not run when the device is in kind of "no use" mode. Let me check and revert back to you on this feature.

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          1 Reply Last reply
          0
          • W Offline
            W Offline
            wincc
            wrote on last edited by
            #5

            Update 2.

            I am pretty sure this is an "android problem" , when I charge the phone with HTC provided charger and run my application I do not get any 10 second "drops" even if screen is dark...
            I hope there is some simple solution for this otherwise it is not possible to get accurate GPS data.

            //wincc

            1 Reply Last reply
            0
            • W Offline
              W Offline
              wincc
              wrote on last edited by
              #6

              Is there anyone that has some idea what I can try to do ?

              //wincc

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved