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

SUPL_CLIENT_LIB

Hi

I am using NC version 1.5.0 Dk version 0.15.0 .I am trying to get the AGPS data ..it's working sometimes and some times I'm facing the following error.Can you please give me a workaround for

this.

Fetching AGPS data from SUPL server!!!                                          
GNSS AGPS mode                                                                  
GNSS AGPS mode                                                                  
LTE cell changed: Cell ID: 1725702, Tracking area: 49235                        
RRC mode: Connected                                                             
Starting SUPL session                                                           
ULP encoding length: 39                                                         
Bytes sent: 39                                                                  
Bytes received: 34, total 34                                                    
ULP ossDecode success, choice 3                                                 
SUPL server responded using version 2.0.4                                       
SUPL response received                                                          
ULP encoding length: 58                                                         
Bytes sent: 58                                                                  
Bytes received: 708, total 708                                                  
ULP ossDecode more input 4                                                      
read again                                                                      
read again                                                                      
read again                                                                      
read again                                                                      
read again                                                                      
read again                                                                      
read again                                                                      
read again                                                                      
read again                                                                      
read again                                                                      
Timeout expired                                                                 
SUPL error: 3                                                                   
ULP encoding length: 34                                                         
Bytes sent: 34                                                                  
SUPL session internal resources released                                        
SUPL session finished                                                           
Done                      

  • Hi!

    This could be a network issue or a memory issue.

    If it's a network issue, getaddrinfo() is returning an error which results in a SUPL error 3. The other possible issue is that when the main thread is the only one reading GPS data from the socket, it stops reading when running SUPL and the memory in the nRF Modem library's packet handler becomes full. In this case, SUPL will receive out of memory errors which results in what you're seeing.

    Could you capture a modem trace when the error occurs to rule out any network issues? 

    You could also try running the SUPL session in a separate thread from the application. This will let the main thread keep reading the GPS data which will free up memory in the packet handler if that is the issue.

    Best regards,

    Heidi

Related