×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    47

    GPS bluetooth and internal:Positioning?

    Hello,
    i have to develop an application to show GPS coordinates.
    The following code seems to be already working for internal GPS of N95
    Code:
    positioning.set_requestors([{"type":"service", "format":"application", "data":"test_app"}]) 
    		print "position set_req called"
    		positioning.position(course=1,satellites=1, callback=cb, interval=500000, partial=0)
    How is possible to use the same (or similiar) code for an external bluetooth antenna GPS without write a totally different code for it?
    Thank you!
    Giacomo

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: GPS bluetooth and internal:Positioning?

    hi giapage
    if u want to use the external GPS reader.
    plz try this.
    hope this helps you and dont forget to give a feedback

  3. #3
    Regular Contributor
    Join Date
    Jan 2004
    Location
    Helsinki
    Posts
    376

    Re: GPS bluetooth and internal:Positioning?

    [QUOTE=giapage;407922]Hello,
    i have to develop an application to show GPS coordinates.
    The following code seems to be already working for internal GPS of N95
    Code:
    positioning.set_requestors([{"type":"service", "format":"application", "data":"test_app"}]) 
    		print "position set_req called"
    		positioning.position(course=1,satellites=1, callback=cb, interval=500000, partial=0)
    You can choose available locationing modules in your phone settings menu. Then positioning module has a function to choose one of available modules to be used for the positioning. See PyS60 API doc. This was fixed in the latest PyS60 version.
    Mikko Ohtamaa

    http://mfabrik.com
    http://blog.mfabrik.com

  4. #4
    Registered User
    Join Date
    Feb 2008
    Posts
    47

    Re: GPS bluetooth and internal:Positioning?

    Quote Originally Posted by miohtama View Post
    You can choose available locationing modules in your phone settings menu. Then positioning module has a function to choose one of available modules to be used for the positioning. See PyS60 API doc. This was fixed in the latest PyS60 version.
    Thank you. I found it on the settings-menu and i've selected also the GPS Bluetooth (that was not checked). How does it work now? I mean, when a call the metod:
    Code:
    positioning.set_requestors([{"type":"service", "format":"application", "data":"test_app"}])
    which position-device is used?

  5. #5
    Regular Contributor
    Join Date
    Jan 2004
    Location
    Helsinki
    Posts
    376

    Re: GPS bluetooth and internal:Positioning?

    Quote Originally Posted by giapage View Post
    Thank you. I found it on the settings-menu and i've selected also the GPS Bluetooth (that was not checked). How does it work now? I mean, when a call the metod:
    Code:
    positioning.set_requestors([{"type":"service", "format":"application", "data":"test_app"}])
    which position-device is used?
    Please read PyS60 API doc. You need some other function.
    Mikko Ohtamaa

    http://mfabrik.com
    http://blog.mfabrik.com

  6. #6
    Registered User
    Join Date
    Feb 2008
    Posts
    47

    Re: GPS bluetooth and internal:Positioning?

    I've already read the S60 Api.
    At the moment i have an application that works to getting GPS info like latitude, longitude and altitude.
    The problem is that if i select "Enable GPS bluetooth" from the SYstem Settings it use the GPS antenna otherwise it use the internal GPS antenna.
    When bluetooth antenna was enabled, i tried to change the default module using
    Code:
    position.select module(InternalGPSid)
    without succed.
    Isn't it correct?

Posting Permissions

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