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

Difficulty to get agps data

Hello,

I have a problem with the GPS and more precisely the AGPS. I would like to retrieve my position with the thingy91, I created a project by taking the AGPS sample and add the sending of information (GPS and RSRP) via MQTT in NB-IoT. To retrieve the AGPS data I use the NRF Cloud. However, I face two problems.

The first is when connecting to the cloud, the event CLOUD_EVT_CONNECTING is very long and it ends up failing to connect. The connection is very weak at my place (I have an RSRP of -115 dB, but I can send data), is the problem the power? I tried to move to one with a slightly better RSRP (-100 dB) and there I managed to connect to the cloud but the AGPS request fails. So this is the second problem. Here are the logs:

021-06-10T06:26:44.474Z DEBUG modem << +CEREG: 2,"C38C","002580CF",9,0,0,"11100000","11100000"
2021-06-10T06:26:44.879Z DEBUG modem << +CSCON: 1
2021-06-10T06:26:45.174Z DEBUG modem << +CEREG: 4,"C38C","002580CF",9,0,15,"11100000","11100000"
2021-06-10T06:26:45.442Z DEBUG modem << +CSCON: 0
2021-06-10T06:26:45.887Z DEBUG modem << +CEREG: 4,"FFFE","FFFFFFFF",9,0,15,"11100000","11100000"
2021-06-10T06:26:49.666Z DEBUG modem << +CEREG: 2,"174D","01626B66",9,0,15,"11100000","11100000"
2021-06-10T06:26:50.359Z DEBUG modem << +CSCON: 1
2021-06-10T06:27:19.406Z DEBUG modem << +CEREG: 4,"174D","01626B66",9,0,15,"11100000","11100000"
2021-06-10T06:27:24.257Z DEBUG modem << +CSCON: 0
2021-06-10T06:27:24.517Z DEBUG modem << +CEREG: 4,"FFFE","FFFFFFFF",9,0,15,"11100000","11100000"
2021-06-10T06:27:24.835Z DEBUG modem << +CEREG: 4,"174D","01626B66",9,0,15,"11100000","11100000"
2021-06-10T06:27:26.909Z DEBUG modem << W: getaddrinfo, error: -11
2021-06-10T06:27:26.923Z DEBUG modem << W: getaddrinfo, error: -11
2021-06-10T06:27:26.927Z DEBUG modem << W: getaddrinfo, error: -11
2021-06-10T06:27:26.936Z DEBUG modem << W: getaddrinfo, error: -11
2021-06-10T06:27:26.948Z DEBUG modem << W: getaddrinfo, error: -11
2021-06-10T06:27:26.950Z DEBUG modem << W: Not getting time from any NTP server
2021-06-10T06:28:13.083Z DEBUG modem << +CEREG: 2,"BAEB","01136C65",9,0,15,"11100000","11100000"
2021-06-10T06:28:13.645Z DEBUG modem << +CSCON: 1
2021-06-10T06:28:14.861Z DEBUG modem << +CEREG: 5,"BAEB","01136C65",9,,,"11100000","11100000"
2021-06-10T06:28:14.878Z DEBUG modem << LTE Link Connected!
2021-06-10T06:28:15.465Z DEBUG modem << [Info] Operator: 26202 
2021-06-10T06:28:15.468Z DEBUG modem << I: A-GPS has started
2021-06-10T06:28:15.476Z DEBUG modem << I: CLOUD_EVT_CONNECTING
2021-06-10T06:28:24.866Z DEBUG modem << I: CLOUD_EVT_CONNECTED
2021-06-10T06:28:26.950Z DEBUG modem << I: CLOUD_EVT_DATA_RECEIVED
2021-06-10T06:28:26.963Z DEBUG modem << I: CLOUD_EVT_PAIR_DONE
2021-06-10T06:28:30.627Z DEBUG modem << I: CLOUD_EVT_READY
2021-06-10T06:28:30.629Z DEBUG modem << I: Service info sent to cloud
2021-06-10T06:28:30.642Z DEBUG modem << I: GPS search started with timeout 60 s
2021-06-10T06:28:30.645Z DEBUG modem << I: GPS_EVT_SEARCH_STARTED
2021-06-10T06:28:30.648Z DEBUG modem << I: GPS_EVT_AGPS_DATA_NEEDED
2021-06-10T06:28:30.681Z DEBUG modem << E: Link data not obtained: 20 -5
2021-06-10T06:28:30.683Z DEBUG modem << E: Network data not obtained: -5
2021-06-10T06:28:30.687Z DEBUG modem << E: Could not obtain cell information
2021-06-10T06:28:30.689Z DEBUG modem << E: nRF Cloud A-GPS request failed, error: -11
2021-06-10T06:28:30.694Z DEBUG modem << E: Failed to request A-GPS data, error: -11
2021-06-10T06:28:30.713Z DEBUG modem << E: Link data not obtained: 20 -5
2021-06-10T06:28:30.718Z DEBUG modem << E: Network data not obtained: -5
2021-06-10T06:28:30.720Z DEBUG modem << E: Could not obtain cell information

My goal is to make a heat map of the NB-IoT connection power in my city. If you have an idea and tips to solve or work around the problem I thank you in advance!

Related