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?

Parents
  • Hi.

    Libsupl error 8 is LIBSUPL_SESSION_MISSING_ERR. Are you certain that you integrated the SUPL library correctly?

    Have you enabled debug logging in the library? That might provide more details about what goes wrong.

    Best regards,

    Didrik

  • Hi 

    Are you certain that you integrated the SUPL library correctly?

    How to ensure this? I download the library from your site and put them into "nrf\ext\lib\bin\supl"

    Have you enabled debug logging in the library?

    How to enable the library logging?

    Updated the agps log as below:

    00> Starting SUPL session
    00> [00:00:22.179,504] <inf> lte: +CEREG: 2,"0001","01A2D101",7,0,0,"11100000",~
    00> [00:00:22.490,875] <inf> lte: +CEREG: 1,"0001","01A2D101",7,,,"00001111","1~
    00> [00:00:22.490,875] <inf> lte: Connected to LTE network.
    00> Established LTE link
    00> 
    00> ip 6cb1:61c0:: (c061b16c) port 7276
    00> 
    00> ossinit failed, rc: 8
    00> 
    00> SUPL session internal resources released
    00> 
    00> [00:00:22.644,195] <err> agps: SUPL session failed: -15
    00> Done
    00> 
    00> [00:00:22.682,647] <inf> lte: +CEREG: 0,"0001","01A2D101",7,0,0,"11100000",~

  • Hi Didrik,

    Thanks for your sharing, but our project needs SUPL method AGPS, the nrf cloud AGPS may not suit our application.

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

  • One more question:

    Does the modem fw mfw_nrf9160_1.2.0 support AGPS with SUPL session? We found the SUPL session will crash with mfw_nrf9160_1.2.0.

    Here are the test results by using the same application firmware with different modem firmware:

    1), application could download AGPS data and finish SUPL session with mfw_nrf9160_1.1.1

    [15:01:26.401]AT+CGMR
    [15:01:26.408]mfw_nrf9160_1.1.1
    OK
    
    //Debug log:
    [00:00:11.184,204] <inf> agps: GPS data id: NRF_GNSS_AGPS_DATA_ID(3)
    [00:00:11.184,234] <inf> agps: New AGPS data requested, contacting SUPL server, flags 59
    [00:00:11.184,509] <inf> agps: GPS control suspended
    Starting SUPL session
    [00:00:12.421,020] <inf> lte: +CEREG: 2,"0001","01A2D101",7,0,0,"11100000",~
    [00:00:12.772,338] <inf> lte: +CEREG: 1,"0001","01A2D101",7,,,"11100000","1~
    [00:00:12.772,369] <inf> lte: Connected to LTE network.
    Established LTE link
    
    ip 6cb1:7dc0:: (c07db16c) port 7276
    
    Connected to SUPL server "supl.google.com:7276"

    2), SUPL session will reboot when testing same application with mfw_nrf9160_1.2.0

    [15:04:07.034]AT+CGMR
    [15:04:07.041]mfw_nrf9160_1.2.0
    OK
    
    [00:00:33.969,604] <inf> agps: GPS data id: NRF_GNSS_AGPS_DATA_ID(3)
    [00:00:33.969,635] <inf> agps: New AGPS data requested, contacting SUPL server, flags 59
    [00:00:33.987,701] <inf> agps: GPS control suspended
    Starting SUPL session
    *** Booting Zephyr OS build v2.1.99-ncs1  ***

  • 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.

Reply Children
No Data
Related