×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Dec 2011
    Posts
    3

    Read NMEA 0183 string without using Bluetooth

    Hi ,

    How can I read NMEA 0183 string with/without using J2ME Location API?

    I have used location.getExtraInfo("application/X-jsr179-location-nmea"). But it is always returning null. Is there any way to read the raw NMEA 0183 string??

    Thanks in advance.

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: Read NMEA 0183 string without using Bluetooth

    in future please do post your questions under the selected technology, this time I moved this from General discussions.

  3. #3
    Nokia Developer Expert
    Join Date
    Aug 2011
    Posts
    555

    Re: Read NMEA 0183 string without using Bluetooth

    Hi shubho_2011,

    That's the correct way.

    I managed to get a non-null value using the following example (that uses the same line to retrieve extra info) on Nokia 701:
    http://www.developer.nokia.com/Commu...on_API_JSR_179

    You location object must be a valid one before attempting the retrieval. Try also to see if you can extract the extra info by using LIF Mobile Location Protocol. You can try this:

    location.getExtraInfo("application/X-jsr179-location-lif")

    Use a Nokia SDK if you are not already doing so (provided you are testing on a Nokia device).
    Last edited by skalogir; 2012-01-03 at 07:45.

  4. #4
    Registered User
    Join Date
    May 2005
    Posts
    76

    Re: Read NMEA 0183 string without using Bluetooth

    It works fine for me on S60rd FP2 phone, it worked fine on Nokia 500 with Anna, but since Belle update, and also on Nokia 701 w/ Belle (latest update), I always get null.
    My criteria: alt and speed required, cost not allowed, power usage high/medium (tried both). Location method (in phone settings): integrated GPS only.

    I wonder how you managed to get NMEA on Nokia 701?

  5. #5
    Nokia Developer Expert
    Join Date
    Aug 2011
    Posts
    555

    Re: Read NMEA 0183 string without using Bluetooth

    Hi hnipak,

    It's the set cost to allowed that makes the difference and also you need to enable Assisted GPS as a positioning method from Settings. If you attempt again with network support, you will manage to get the NMEA string.

    After extended tested, this is proven to be a bug that was introduced in some versions of Belle. It should have been possible to get a value for the NMEA string even without enabling the Assisted GPS option, as long as you get a valid location object.

    Anna does not seem to be affected by this. The error is present for example in Belle software version 111.030.0609.

    Thanks for reporting this. I will submit this internally, and report back to this thread as soon as I know more.

  6. #6
    Registered User
    Join Date
    May 2005
    Posts
    76

    Re: Read NMEA 0183 string without using Bluetooth

    Thank you very much.

    By the way, is there a way to report bugs in java implementtion? I'm asking because I have another bugreport for consideration, in JSR-234 / S40 6th, discussed here.

  7. #7
    Nokia Developer Expert
    Join Date
    Aug 2011
    Posts
    555

    Re: Read NMEA 0183 string without using Bluetooth

    You can first look for similar errors, in order to ensure that your issue has not been reported before, and then you can submit any new bugs to Bugzilla here.
    It is helpful to provide as much information as possible, such as the software version of the affected devices, or the SDK you used to compile to code and a detailed description for the error as well as steps to reproduce the issue, including expected and actual outcomes.

  8. #8
    Registered User
    Join Date
    May 2005
    Posts
    76

    Re: Read NMEA 0183 string without using Bluetooth

    Thank you! The trick with Assisted GPS option enabled works - even with mobile data and wifi disabled

Similar Threads

  1. fetch NMEA string (gpgga format)...
    By nital_shah in forum Symbian
    Replies: 3
    Last Post: 2011-05-18, 19:42
  2. LocationProvider NMEA String on 5800XM
    By pixsta in forum Mobile Java General
    Replies: 0
    Last Post: 2009-05-16, 10:17
  3. Problem with getting NMEA string using Location API
    By flakel in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2009-03-16, 09:25
  4. Valid Location (JSR179) without an NMEA String ?
    By Tiger79 in forum Mobile Java General
    Replies: 0
    Last Post: 2008-05-09, 10:54

Posting Permissions

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