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

nRF9160 A-GPS SUPL run error

Hello:

I'm testing nrf9160's A-GPS function, and I find that an error of SUPL will be reported at runtime:

 *** Booting Zephyr OS build v2.1.99-ncs1-rc1  ***␍␊
[14:39:14:640] Staring GPS application␍␊
[14:39:14:640] Socket created␍␊
[14:39:14:649] Getting GPS data...␍␊
[14:39:14:649] <0x1b>[1;1H<0x1b>[2JTracking: 0 Using: 0 Unhealthy: 0␍␊
[14:39:14:653] Seconds since last fix 0␍␊
[14:39:14:656] ␍␊
[14:39:14:656] Scanning [|] <0x1b>[1;1H<0x1b>[2JTracking: 0 Using: 0 Unhealthy: 0␍␊
[14:39:15:160] Seconds since last fix 0␍␊
[14:39:15:167] ␍␊
[14:39:15:167] Scanning [/] <0x1b>[1;1H<0x1b>[2JNew AGPS data requested, contacting SUPL server, flags 59␍␊
[14:39:20:882] Established LTE link␍␊
[14:39:20:890] ip ddb0:37:: (3700b0dd) port 7275␍␊
[14:39:21:090] Starting SUPL session␍␍␊
[14:39:21:100] ULP encoding length: 38␍␊
[14:39:21:100] Bytes sent: 38␍␊
[14:39:21:350] Bytes received: 7␍␊
[14:39:21:359] ULP ossDecode fail 5␍␊
[14:39:21:359] SUPL error: 1␍␊
[14:39:21:359] ULP encoding length: 18␍␊
[14:39:21:359] Bytes sent: 18␍␊
[14:39:21:368] SUPL session internal resources released␍␊
[14:39:21:368] Done␍␊

I use master branch of the nrf  repository(nrf/samples/nrf9160/gps); the modem version is v1.1.1(mfw_nrf9160_1.1.1.zip);the SUPL client library  is nrf9160_libsupl-v0.5.1-c145bfb.zip.

I modified SUPL server and server port to local server and port:

#define SUPL_SERVER      "221.176.0.55"
#define SUPL_SERVER_PORT 7275

If I didn't modify SUPL server and server port to local server, dns fail(because we can't use google service in China).

so please give me some advices! Thanks

Best regards!

Harry

Parents Reply Children
Related