×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    89

    GPS stops after 10min

    Hi group,
    I have a simple app on my Nokia N95 (firmare rev. v2.1) which is retrieving position from internal GPS receiver. I initialize the position server with these parameters:

    const TInt KSecond = 1000000;
    const TInt KMaxAge = KSecond;
    iOptions.SetUpdateInterval(TTimeIntervalMicroSeconds(3 * KSecond));
    iOptions.SetUpdateTimeOut(TTimeIntervalMicroSeconds(30 * KSecond));
    iOptions.SetMaxUpdateAge(TTimeIntervalMicroSeconds(KMaxAge));
    iOptions.SetAcceptPartialUpdates(ETrue);

    iPos.SetUpdateOptions( iOptions); //iPos is RPositioner

    what happens now is quite strange i get GPS updates as expected for 10 minutes!!! After that it always sends last known position, no matter what!! If i restart my app it again works fine for 10min just to stop right after that time.

    please help!

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: GPS stops after 10min

    Quote Originally Posted by minstn View Post
    Hi group,
    I have a simple app on my Nokia N95 (firmare rev. v2.1) which is retrieving position from internal GPS receiver. I initialize the position server with these parameters:

    const TInt KSecond = 1000000;
    const TInt KMaxAge = KSecond;
    iOptions.SetUpdateInterval(TTimeIntervalMicroSeconds(3 * KSecond));
    iOptions.SetUpdateTimeOut(TTimeIntervalMicroSeconds(30 * KSecond));
    iOptions.SetMaxUpdateAge(TTimeIntervalMicroSeconds(KMaxAge));
    iOptions.SetAcceptPartialUpdates(ETrue);

    iPos.SetUpdateOptions( iOptions); //iPos is RPositioner

    what happens now is quite strange i get GPS updates as expected for 10 minutes!!! After that it always sends last known position, no matter what!! If i restart my app it again works fine for 10min just to stop right after that time.

    please help!
    check for any leaks that might fill of the memory resulting in this behavior.

Similar Threads

  1. JSR-179API provider reset to stop GPS location activity
    By nicholso in forum Mobile Java General
    Replies: 15
    Last Post: 2009-02-06, 11:33
  2. Problems of BT GPS connection
    By eling0167 in forum Bluetooth Technology
    Replies: 0
    Last Post: 2008-08-19, 13:46
  3. Replies: 0
    Last Post: 2008-05-12, 09:57
  4. Bluetooth GPS simulator for j2me phone
    By vgps in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2007-02-09, 04:30

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×