u-blox / ubxlib

Portable C libraries which provide APIs to build applications with u-blox products and services. Delivered as add-on to existing microcontroller and RTOS SDKs.
Apache License 2.0
287 stars 82 forks source link

AssistNow for SARA-R510M8S #221

Closed elektron314 closed 1 month ago

elektron314 commented 3 months ago

Hello, am I missing something, or didn't understand the right application of the AssistNow? I don't understand how to use it with SARA-R510M8S. In the assist_now_main.c file it says next:

/** @brief This example demonstrates how to use the u-blox AssistNow
 * services to improve the time to first fix of your GNSS device; it may
 * be used where you have a GNSS device connected directly to this MCU
 * (so not connected via an intermediate cellular module).

But what should I use or how should I act if my GNSS block is inside of the cell module? Or perhaps I chose the wrong technology for my module to integrate.

RobMeades commented 3 months ago

Hi Aleks, apologies for the confusion. That example is the gnss example for the AssistNow service:

image

...which knows nothing about cellular. You can, of course, use it with a GNSS chip inside a cellular module if you wish, but that is probably not the right thing to do because the FW of the cellular module is intended to do that management for you. The location examples are intended to cover the location problem overall, where CellLocate is the thing that manages the GNSS chip inside the cellular module for you:

image

There are APIs to configure the AssistNow features of CellLocate in u_cell_loc.h (the AssistNow configuration part around here) but we don't address those APIs in the example because, once you use CellLocate, by default, if you do nothing, AssistNow Online and AssistNow Autonomous are both switched on, which is usually the optimal setting. Despite the name, CellLocate will use position from the in-built GNSS chip and drop back to cellular-based position if it is unable to establish GNSS position.

elektron314 commented 3 months ago

Thank you! I got it working now.

RobMeades commented 1 month ago

Going to close this one as I believe you have been able to resolve things.

elektron314 commented 1 month ago

yes, sure, thank you!