This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

questions for AGPS

Hi

I merged the AGPS to serial_lte_modem slm_at_gps.c but it did not work:

1, if I activate LTE in gps_thread_fn(), it will be failed in supl_session();

00> Established LTE link
00> 
00> Starting SUPL session
00> ip 6cb1:61c0:: (c061b16c) port 7276
00> 
00> ossinit failed, rc: 8
00> 
00> SUPL session internal resources released
00> 
00> Done

2, If I activated LTE and attached to network before starting GPS, the gps_data.data_id will never be NRF_GNSS_AGPS_DATA_ID, so the GPS will have no opportunity to download SUPL data from server. why?

  • Siyou said:
    We will try to test the google SUPL with simulated MCC/MNC, do you think it practicable?

     I am not sure how you would do that?

    To my knowledge, the SUPL library gets the MCC/MNC directly from the modem, so you would have to do something on the network side to fool the modem.

     

    Siyou said:
    Does the modem fw mfw_nrf9160_1.2.0 support AGPS with SUPL session?

     Yes. Mfw 1.2.0 should work just fine with NCS v1.2.0, including the SUPL library.

    To me, it looks like the problem is on the application side, but if you take a modem trace, I can check that the modem behaves as normal.

    You could also try to add debug log output from the at_cmd library if you haven't already: CONFIG_AT_CMD_LOG_LEVEL=y

    As the application restarts, you might need to use immediate logging to get log output before the reboot: CONFIG_LOG_IMMEDIATE=y

  • Siyou said:
    Does the modem fw mfw_nrf9160_1.2.0 support AGPS with SUPL session?

     Yes. Mfw 1.2.0 should work just fine with NCS v1.2.0, including the SUPL library.

    To me, it looks like the problem is on the application side, but if you take a modem trace, I can check that the modem behaves as normal.

    Resolved by upgrading the NCS SDK to latest(refer to this case)

  • I am not sure how you would do that?

    To my knowledge, the SUPL library gets the MCC/MNC directly from the modem, so you would have to do something on the network side to fool the modem.

    Get it to work with google SUPL server by using dummy MCC/MNC in nrf\lib\supl\os\lte_params.c

    No further issue now, please close this case.

Related