Is there a bug with the lte network connection in the ncs1.9.0 SDK?

I developed a product on ncs1.9.0. It needs to connect to the nb network and support the gps positioning function. When the device is running, I found a problem that when the device is connected to the nb network and starts gps for the first time, it can start the agps function normally; However, when I need to start the gps function again, I find that function lte_lc_connect() returns an error. I traced it and found it set a flag  named "in_progress" in the first part of this function, and return without cleared the progress flag if the reg_status is logged directly, which will cause the function to enter again later, it will return an error at the setting flag directly , it resulting in the inability to connect to the network and the failure of the agps function startup.  I think it should be modified as follows:

Parents
  • Hi,

     

    If that function call fails, then there's a problem with the ordering of your firmware, ie. that the modem related libraries isn't up and running before you call the function.

     

    Can you share more information about what you're doing in code that leads to this scenario?

     

    Kind regards,

    Håkon

  • No, it is not that the function call fails, but that when it runs to the position indicated by the first arrow, it directly returns an error result, that is, the lte connection fails, causing subsequent applications to be terminated. This occurs when an application has connected to the lte, that is, the device has registered, and another application needs to connect to the LTC network again to perform other data transmission tasks. For example, my device has been connected to the nb network. When I start gnss, it needs to use the lte network again to start the agps function.

Reply
  • No, it is not that the function call fails, but that when it runs to the position indicated by the first arrow, it directly returns an error result, that is, the lte connection fails, causing subsequent applications to be terminated. This occurs when an application has connected to the lte, that is, the device has registered, and another application needs to connect to the LTC network again to perform other data transmission tasks. For example, my device has been connected to the nb network. When I start gnss, it needs to use the lte network again to start the agps function.

Children
Related