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

Hi,I am working on AGPS sample on ncs version 1.5.0 ..Downloaded the corresponding supl_client_library.Where as i am facing an issue with ipv4 from library.Can some one help me out on how to resolve this?

*** Booting Zephyr OS build v2.4.99-ncs1  ***
[2021-03-08 11:16:38] I: A-GPS sample has started
[2021-03-08 11:16:38] Enabling PSM
[2021-03-08 11:16:38] Setting PSM values - RPTAU - 00100001, RAT - 11100001
[2021-03-08 11:16:38] Disabling EDRX
[2021-03-08 11:16:38] Registering LTE Link Callbacks !
[2021-03-08 11:16:38] LTE Link Connecting...
[2021-03-08 11:16:40] +CEREG: 2,"C053","000A8F0F",9,0,0,"11100000","11100000"
[2021-03-08 11:16:40] LTE cell changed: Cell ID: 691983, Tracking area: 49235
[2021-03-08 11:16:40] +CSCON: 1
[2021-03-08 11:16:40] RRC mode: Connected
[2021-03-08 11:16:42] +CEREG: 1,"C053","000A8F0F",9,,,"00000010","00011111"
[2021-03-08 11:16:42] LTE Link Connected!
[2021-03-08 11:16:42] Network registration status: Connected - home network
[2021-03-08 11:16:42] PSM parameter update: TAU: 18600, Active time: 4
[2021-03-08 11:16:42] D: MAGPIO set: AT%XMAGPIO=1,0,0,1,1,1565,1586
[2021-03-08 11:16:42] D: COEX0 set: AT%XCOEX0=1,1,1565,1586
[2021-03-08 11:16:42] D: GPS socket created, fd: 1232491587
[2021-03-08 11:16:42] GPS Initialised succesfully
[2021-03-08 11:16:42] +CGEV: IPV6 0
[2021-03-08 11:16:42] Match for +CGEV notification
[2021-03-08 11:16:42] Received notification +CGEV: IPV6 0
[2021-03-08 11:16:42]
[2021-03-08 11:17:12] +CSCON: 0
[2021-03-08 11:17:12] RRC mode: Idle
[2021-03-08 11:19:12] D: GPS mode is enabled
[2021-03-08 11:19:12] D: GPS operational
[2021-03-08 11:19:12] I: Periodic GPS search started with interval 240 s, timeout 120 s
[2021-03-08 11:19:12] gps handler
[2021-03-08 11:19:12] I: GPS_EVT_SEARCH_STARTED
[2021-03-08 11:19:12] D: A-GPS data update needed
[2021-03-08 11:19:12] gps handler
[2021-03-08 11:19:12] I: GPS_EVT_AGPS_DATA_NEEDED
[2021-03-08 11:19:12] D: Using GPS driver to input assistance data
[2021-03-08 11:19:12] I: SUPL is initialized
[2021-03-08 11:19:14] +CSCON: 1
[2021-03-08 11:19:14] RRC mode: Connected
[2021-03-08 11:19:22] E: Failed to resolve IPv4 hostname supl.google.com, errno: -10
[2021-03-08 11:19:22] E: Failed to open SUPL socket
[2021-03-08 11:19:22] E: SUPL request failed, error: -10
[2021-03-08 11:19:22] E: Failed to request A-GPS data, error: -10
[2021-03-08 11:19:22] gps handler
[2021-03-08 11:19:22] D: Tracking: 0 Using: 0 Unhealthy: 0
[2021-03-08 11:19:22] D: Seconds since last fix 164
[2021-03-08 11:19:22] gps handler
[2021-03-08 11:19:22] D: Waiting for time window to operate
[2021-03-08 11:19:22] gps handler
[2021-03-08 11:19:22] I: GPS_EVT_OPERATION_BLOCKED
[2021-03-08 11:19:32] D: GPS priority enabled

CTRL-A Z for help | 115200 8N1 | NOR | Minicom 2.7.90 | VT102 | Offline | ttyACM0                                                                                                            

Parents Reply Children
  • Hi,

    I tried and it is still the same..unable to resolve the ip address but if i try the same from gps application by enabling supl client library "supl.google.com" is getting resolved.

  • Hi,

     

    Bhavya said:
    I tried and it is still the same..unable to resolve the ip address but if i try the same from gps application by enabling supl client library "supl.google.com" is getting resolved.

    Could you try setting these configurations and see if this improves the scenario?

    CONFIG_POSIX_MAX_FDS=8
    CONFIG_NRF_MODEM_LIB_HEAP_SIZE=2048
     

     

    Kind regards,

    Håkon

  • I'm glad to hear.

    My apologies for this bug. This is a restriction we recently found, and it will be corrected in the next tag of ncs.

     

    Kind regards,

    Håkon

  • Hi Håkan!

    Do you have fixed this bug yet?

    I am using 1.5.1 and see the same problem.

    I need a fix to be able to do the gps code for my customer.

    Here's my log (1.5.1 SDK)

    =====================

    [00:00:01.596,435] <inf> modem: MFW: mfw_nrf9160_1.3.0
    [00:00:01.619,110] <dbg> modem.modem_set_gps_active: Activating GPS...
    [00:00:01.682,586] <dbg> nrf9160_gps.gps_priority_set: GPS priority disabled
    [00:00:01.699,768] <dbg> nrf9160_gps.start: GPS operational
    [00:00:01.708,251] <inf> agps_sample: Periodic GPS search started with interval 0 s, timeout 0 s
    [00:00:01.719,665] <inf> agps_sample: GPS_EVT_SEARCH_STARTED
    [00:00:01.728,027] <dbg> nrf9160_gps.gps_thread: A-GPS data update needed
    [00:00:01.737,396] <inf> agps_sample: GPS_EVT_AGPS_DATA_NEEDED
    [00:00:01.745,819] <inf> modem: LTE connecting...
    [00:00:01.753,112] <dbg> modem.modem_lte_connect: Activating LTE
    [00:00:09.025,177] <dbg> modem.lte_lc_evt_handler: REG status: 2
    [00:00:12.530,029] <dbg> modem.lte_lc_evt_handler: REG status: 5
    [00:00:12.538,696] <inf> modem: LTE connected
    [00:00:12.545,654] <dbg> agps.init_supl: Using GPS driver to input assistance data
    [00:00:12.555,816] <inf> agps: SUPL is initialized
    [00:00:12.975,677] <err> agps: Failed to resolve IPv4 hostname supl.google.com, errno: -10
    [00:00:12.986,785] <err> agps: Failed to open SUPL socket
    [00:00:12.995,025] <err> agps: SUPL request failed, error: -10
    [00:00:13.003,723] <err> agps_sample: Failed to request A-GPS data, error: -10

    /Johan

Related