Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor minstn's Avatar
    Join Date
    Mar 2003
    Posts
    89
    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
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    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 with BT GPS devices
    By eling0167 in forum Geolocation and Navigation
    Replies: 3
    Last Post: 2008-10-21, 10:20
  3. Problems of BT GPS connection
    By eling0167 in forum Bluetooth Technology
    Replies: 0
    Last Post: 2008-08-19, 13:46
  4. Replies: 0
    Last Post: 2008-05-12, 09:57
  5. 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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved