Hi,
I have to integrate on my MQTT application , location library using GNSS.
Actually I am using location library on cellular. I want to use exclusively GNSS.
I am developing on a Actinius Icarus board V2. on 2.7.0 SDK.
From samples I take a look at GNSS sample.
As described, when Init modem I check it is in normal mode:
int err;
enum lte_lc_func_mode mode;
err = lte_lc_func_mode_get(&mode);
if (err) {
LOG_INF("Failed to get modem functional mode: %d", err);
} else {
// If not in normal mode, set it to normal mode
if (mode != LTE_LC_FUNC_MODE_NORMAL) {
LOG_INF("Modem not in normal mode. Current mode: %d. Setting to normal mode...", mode);
err = lte_lc_func_mode_set(LTE_LC_FUNC_MODE_NORMAL);
if (err) {
LOG_INF("Failed to set modem to normal mode: %d", err);
return;
}
LOG_INF("Modem set to normal mode successfully");
} else {
LOG_INF("Modem is already in normal mode");
}
}
After the modem has been initialized, I initialize the location service
enum location_method methods[] = {LOCATION_METHOD_GNSS};
location_config_defaults_set(&config, ARRAY_SIZE(methods), methods);
int err = location_request(&config);
but after a request, in the logger I see these messages:
[00:11:45.599,212] <wrn> location: Modem's system or functional mode doesn't all ow GNSS usage
[00:11:45.599,761] <err> location: Failed to configure GNSS
[00:11:45.599,822] <err> location: Location acquisition failed and fallbacks are also done.
I do not know the warning, it looks like the modem with this setting LTE_LC_FUNC_MODE_NORMAL
does not support both lte and gnss.
Do I have to set some other options?
Thanks
Best Regards
Best Regards