Data format translation from SUPL to NRF Cloud AGPS Schema V1

Hello,

          Using the nRF Connect SDK 1.9.1 for nRF9160 location. Found the "location" library quite simple and scalable to use. So was looking into it. We do not plan to use nRF Cloud for AGPS, and selected the corresponding option to go with External AGPS data, and picked the SUPL lib to inject AGPS data. In the GNSS Sample with SUPL Assistance, the SUPL server data received is injected to the GNSS socket, which is fine. Now in case of "location" library, there is a handler "LOCATION_EVT_GNSS_ASSISTANCE_REQUEST" is received. Here it is mentioned to push the AGPS data formatted to nRF Cloud AGPS Schema V1 into function "location_agps_data_process".

1. Is there a way to translate this received SUPL data into the desired schema?

2. Can the data be injected to GNSS Socket and inform the "location" library to use this SUPL's AGPS data?

Parents
  • Hi,

     

    Using the nRF Connect SDK 1.9.1 for nRF9160 location. Found the "location" library quite simple and scalable to use. So was looking into it. We do not plan to use nRF Cloud for AGPS, and selected the corresponding option to go with External AGPS data, and picked the SUPL lib to inject AGPS data. In the GNSS Sample with SUPL Assistance, the SUPL server data received is injected to the GNSS socket, which is fine. Now in case of "location" library, there is a handler "LOCATION_EVT_GNSS_ASSISTANCE_REQUEST" is received. Here it is mentioned to push the AGPS data formatted to nRF Cloud AGPS Schema V1 into function "location_agps_data_process".

    1. Is there a way to translate this received SUPL data into the desired schema?

    I am not sure I understand the question properly.

    AGPS SUPL data, regardless of where it comes from (ie. google supl server or nrf cloud), is injected in the same way to the gnss.

    2. Can the data be injected to GNSS Socket and inform the "location" library to use this SUPL's AGPS data?

    Location is a look up based on the MNC/MCC of your currently connected network, and if there's a problem to look up the specific Cell ID, it will give a default location based on the country code.

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    Using the nRF Connect SDK 1.9.1 for nRF9160 location. Found the "location" library quite simple and scalable to use. So was looking into it. We do not plan to use nRF Cloud for AGPS, and selected the corresponding option to go with External AGPS data, and picked the SUPL lib to inject AGPS data. In the GNSS Sample with SUPL Assistance, the SUPL server data received is injected to the GNSS socket, which is fine. Now in case of "location" library, there is a handler "LOCATION_EVT_GNSS_ASSISTANCE_REQUEST" is received. Here it is mentioned to push the AGPS data formatted to nRF Cloud AGPS Schema V1 into function "location_agps_data_process".

    1. Is there a way to translate this received SUPL data into the desired schema?

    I am not sure I understand the question properly.

    AGPS SUPL data, regardless of where it comes from (ie. google supl server or nrf cloud), is injected in the same way to the gnss.

    2. Can the data be injected to GNSS Socket and inform the "location" library to use this SUPL's AGPS data?

    Location is a look up based on the MNC/MCC of your currently connected network, and if there's a problem to look up the specific Cell ID, it will give a default location based on the country code.

     

    Kind regards,

    Håkon

Children
Related