Failed to write factory almanac (65536)

I'm trying out the GNSS sample for the nRF9161 DK. I am trying to enable minimal assistance, but I get an error message with error code 65536:

*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***
*** Using Zephyr OS v3.6.99-100befc70c74 ***
[00:00:09.889,648] <err> projectnamehere: Failed to write factory almanac

The error in question occurs here:
https://github.com/nrfconnect/sdk-nrf/blob/54f8a63b22d4b94398774334aa85ace6a5e20459/samples/cellular/gnss/src/assistance_minimal.c#L115

Any ideas what might be going on here? GNSS still works afterwards and TTFF is about a minute.

BTW, the modem firmware is latest (mfw_nrf91x1_2.0.1).

Parents
  • Modem team;

    Based on the application output, my guess is that they are not running an unmodified GNSS sample. I tried the GNSS sample from SDK v2.7.0 with nRF9151 and MFW v2.0.1, and it works fine.

    If the almanac data and checksum are correct, there are only two reasons why the writing should fail. One is that the modem is in active state and second that power off warning (configured with %XPOFWARN) is currently active. The second one is unlikely the reason here, if they are using a DK and the nRF9161 is powered from the USB. They should check if the application sets the modem to active state before the factory almanac is written. If that’s the case, they need to change their implementation. %XFILEWRITE can only be done in +CFUN modes 0 and 4.

Reply
  • Modem team;

    Based on the application output, my guess is that they are not running an unmodified GNSS sample. I tried the GNSS sample from SDK v2.7.0 with nRF9151 and MFW v2.0.1, and it works fine.

    If the almanac data and checksum are correct, there are only two reasons why the writing should fail. One is that the modem is in active state and second that power off warning (configured with %XPOFWARN) is currently active. The second one is unlikely the reason here, if they are using a DK and the nRF9161 is powered from the USB. They should check if the application sets the modem to active state before the factory almanac is written. If that’s the case, they need to change their implementation. %XFILEWRITE can only be done in +CFUN modes 0 and 4.

Children
Related