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

"supl_session.h" file missing

Hi,

Im trying "https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/samples/nrf9160/gps/src/main.c" gsp example to check supl(AGPS) to integrate into my application. 

but im unable ti compile the example as it says "supl_session.h" file is missing.(even i do not find that file in ncs directory or github)

Could you please help resolving the issue.

Thanks,

Bala

Parents Reply Children
  • Hi,

    Thanks for information. downloaded the client and able to run the application.

    But application is unable to download the SULP data, getting error.

    *** Booting Zephyr OS build v2.1.99-ncs1-rc1-4-gff214d637e83 ***
    Staring GPS application
    Socket created
    Getting GPS data...
    Tracking: 1 Using: 0 Unhealthy: 0
    Seconds since last fix 0

    Scanning [|] Tracking: 1 Using: 0 Unhealthy: 0
    Seconds since last fix 0

    Scanning [/]
    New AGPS data requested, contacting SUPL server, flags 59
    +CEREG: 2,"0013","00436D0F",9
    +CEREG: 1,"0013","00436D0F",9
    LTE connected
    Established LTE link
    Starting SUPL session
    ULP encoding length: 39
    Bytes sent: 39
    read again
    read again
    read again
    read error: -1
    ULP ossDecode fail 5
    SUPL error: 1
    ULP encoding length: 18
    Sending SUPL message failed, bytes_sent: -1
    SUPL session internal resources released
    Done
    Tracking: 0 Using: 0 Unhealthy: 0
    Seconds since last fix 19

    Im using ipv6 and NB network. Data communication is working properly while using MQTT.

    Thanks,

    Bala

  • Hi Bala,
    Please make sure you are using the latest modem firmware version.
    You may also need to add these two configs in your prj.conf:

    CONFIG_LTE_NETWORK_MODE_NBIOT_GPS=y
    CONFIG_LTE_LEGACY_PCO_MODE=y


    Best regards,

    Martin L.

  • im running latest firmware 1.1.1.

    even after adding 

    CONFIG_LTE_NETWORK_MODE_NBIOT_GPS=y
    CONFIG_LTE_LEGACY_PCO_MODE=y

    getting same error.

    ew AGPS data requested, contacting SUPL server, flags 59
    LTE connected
    Established LTE link
    Starting SUPL session
    ULP encoding length: 39
    Bytes sent: 39
    read again
    read again
    read error: -1
    ULP ossDecode fail 5
    SUPL error: 1
    ULP encoding length: 18
    Sending SUPL message failed, bytes_sent: -1
    SUPL session internal resources released
    Done.

    in same setup mqtt is working fine means that connectivity is proper.

    Please help to resolve the issue.

    Thanks,

    Bala

Related