Git Product home page Git Product logo

Comments (13)

RobMeades avatar RobMeades commented on May 24, 2024 1

OK, it is on the list. As indicated, it doesn't look like a large job and so, provided that remains the case when we get down to the detail, I'd hope we can squeeze it in in January.

Yes, you should be able to gain position frequently as you stated provided that Cell Locate is not on (since Cell Locate would otherwise grab the GNSS chip). Please open another issue if that doesn't work for you.

from ubxlib.

RobMeades avatar RobMeades commented on May 24, 2024 1

Hi again and apologies, no, we are indeed busy with v1. I've made product management, internally here, aware that streaming position is a high priority for our customers, let's see what happens once v1 is out.

from ubxlib.

RobMeades avatar RobMeades commented on May 24, 2024

Hi there and thanks for getting in contact.

You should indeed just be able to do this yourself. For Cell Locate you probably followed the main_loc_cell_locate.c example. To use the GNSS chip inside the SARA-R510M8S module directly you would follow the main_loc_gnss_cell.c example; you will see that brings up a GNSS "network", which is tunnelled through the AT interface to the GNSS chip.

You can then use that GNSS network handle with the GNSS API to talk to the GNSS chip and you will see that one of those APIs is uGnssUtilUbxTransparentSendReceive() where you can just talk to the GNSS chip using any ubx protocol command you wish.

There is one complication if you want to use Cell Locate at the same time, which you can read about here; this is that when you use the GNSS chip directly in this way the Cell Locate code inside the cellular-side of the SARA-R510M8S module will not use it. Don't ask me why, this is just the way the FW in the module does things, to avoid conflicts I guess. So your code that uses the GNSS chip directly will need to give it up again for Cell Locate to use it.

from ubxlib.

RobMeades avatar RobMeades commented on May 24, 2024

Hmm, just realised I may have misunderstood your question: you say "get continual information from the GPS chip" , I assumed that meant that you wanted to communicate with the GNSS chip yourself: is that correct or is it more that you would like the AssistNow service to just get on and operate in conjunction with the GNSS chip?

from ubxlib.

Lukanite avatar Lukanite commented on May 24, 2024

Ah, sorry, let me clarify.
I assume (and I might be mistaken in doing so) AssistNow Online and CellLocate are both methods to leverage the radio's internet connection to speed up the first fix of the GNSS chip. I'd just like to use one of these methods, and once a GNSS fix is available, have some method to continually get the current location from the GNSS chip each second or so from then on (whether that's via an API call or some NMEA callback function would be fine with me).

I'm currently hesitant to use CellLocate through the network handle all the time since I don't want it reaching out to the internet every time I make a uCellLocGet call once the GNSS chip is able to get a fix, and I don't know if CellLocate on the SARA-R510M8S would even keep the GNSS chip powered from call to call.

AssistNow Online seems to be the more direct approach, but I don't see any API that would allow me to tell the cell radio to perform that information exchange with the integrated GNSS chip. Thanks for linking me that ubx protocol page; I guess I could provide my own HTTP client to interact with the radio over the sock library to download the AssistNow data, and then send that over myself to the GNSS chip? Ideally, I'd like the radio to take care of that work for me, just like when using the AT command interface.

Thanks again!

from ubxlib.

RobMeades avatar RobMeades commented on May 24, 2024

Thanks, that's understood now; continuous position is your goal. I suspect we've not addressed this use case directly in ubxlib yet, more the "one shot" behaviour of Cell Locate. You can, of course, weave your own as you suggest but it would be a good idea for us to address this. I am just trying to get hold of the right expert internally to advise me on the best approach and will respond here.

from ubxlib.

RobMeades avatar RobMeades commented on May 24, 2024

I've found the right expert now and conclusion is as follows:

  • the +ULOC command will always ends up talking to a server somehow or other, either to obtain position when Cell Locate is specified as the sensor or to submit the position found by GNSS if GNSS is specified as the sensor; so +ULOC is a good thing for one-shots or if GNSS is not available but is the wrong thing for your "continuous position" use case.
  • it seems that instead the right approach would be to use the +UGPS command to switch on the GNSS receiver with AssistNow aiding, and then use the +UGRMC=1 command to enable storing of the last set of recommended minimum coordinates; the +UGRMC? command could then be used every second to retrieve the last stored set of coordinates until GNSS is eventually switched off.

I think that's the right approach, but of course we don't have it implemented right now. It is probably not a great deal of work, we could maybe take a look at doing that in January?

from ubxlib.

Lukanite avatar Lukanite commented on May 24, 2024

Thanks for the clarifications, Rob, and if you guys could add support that'd be awesome - I think it'd be useful since it opens up the suite of use cases where someone might want to use the GNSS in this radio for tracking on demand.

In the meantime, if I just want to keep the GNSS chip on and receive location data without any kind of acceleration, would the best approach be to call uGnssPwrOn and then just keep calling uGnssPosGet over and over?

from ubxlib.

Lukanite avatar Lukanite commented on May 24, 2024

Just wanted to check in and ask if there's any update on this, even though I'm sure you guys are busy with the v1 release. Cheers!

from ubxlib.

bbyers-UBCO avatar bbyers-UBCO commented on May 24, 2024

@RobMeades I'm also interested in this. Any update?

from ubxlib.

owain-incus avatar owain-incus commented on May 24, 2024

@RobMeades and I too am interested.

from ubxlib.

RobMeades avatar RobMeades commented on May 24, 2024

Apologies for the silence, I realize this has been sitting here for a looooong time now. We should have streaming position out for 1.2 (aiming for March), so we can see how AssistNow would (or would not) work with that then.

from ubxlib.

RobMeades avatar RobMeades commented on May 24, 2024

Configuration of AssistNow is now supported, see https://github.com/u-blox/ubxlib/releases/tag/v1.3.0.

Closing this issue: if you have problems, please open another.

from ubxlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.