This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Working with A GPS got Error on SUPL session nrf9160 stack over Flow and nrf9160dk reboot again

Hi
I want to Integrate GPS(with A GPS assistance needed)with AWS iot example. when i start GPS on aws connect event ready .SUPL is initialized successfully and even SUPL socket is created successfully .inside SUPL session function i got error stack overflow and my nrf9160 dk reboot .I am using nRF Connect Sdk 1.5.0

I am using SUPL client library version 0.7.0 download from Nordic provided link and extract to the path  mention in nordic website.

  • Hi Hakon

    i used both of these function already.Some time after 3 to 7 read again tries session created successfully and some its failed to create supl session,

  • Hi  Hakon,


    I had figure out one more thing that if I start GPS on AWS event case AWS_IOT_EVT_READY:
    SUPL session created successfully(even no need to stop and start again) every time but if I start GPS LTE connected event k_sem_give(&lte_connected);
    Then all of these problem are raised.

  • Hi Hakon,
    I am still unable to find the Solution of this read again and again.some time it work or some time its trying to read again and again .Supl session even after gps_stop,and then gps_start.

  • Hi,

     

    Waqar Ahmed said:
    I had figure out one more thing that if I start GPS on AWS event case AWS_IOT_EVT_READY:
    SUPL session created successfully(even no need to stop and start again) every time but if I start GPS LTE connected event k_sem_give(&lte_connected);
    Then all of these problem are raised.

    You should also not start a GPS session before the LTE Link is idle.

    It seems that you are creating two TCP (TLS) connections simultaneously, which can generate a lot of traffic on-air. If that is the case, it makes sense that you are able to get a better connection if you wait until your cloud is up and running before starting the AGPS session.

     

    Kind regards,

    Håkon

Related