Location library - separating cloud and GNSS requests.

Hello,

I’m wondering if there is a way to separate CELL and Wi-Fi location data from GNSS location data in the Location library. Currently, we use nRF Cloud for location services, which works well. However, we believe using our own cloud as a proxy to nRF Cloud might improve both message transmission times and battery consumption.

Here’s our proposed approach:

  1. The device collects cell tower and Wi-Fi data and sends it to our cloud.
  2. Our cloud forwards this data to nRF Cloud and receives the location in response.
  3. The location remains on our server, so there’s no need to send it back to the device.

The issue we have is that we don’t want to forward AGPS data. Is it possible to forward only CELL and Wi-Fi data and let the device request AGPS directly from nRF Cloud?


Parents
  • Hello,

    This could be done by creating custom firmware. Have you tested our location service library and found it to be inefficient?

    Omitting the response in order to close the radios a bit earlier could yield longer battery life, but I suspect the differences to be negligible. What is your use case? 

    Thanks,

    Cole

  • That makes sense. You could use our C2C model in which you proxy requests from your devices to your servers to nRF Cloud. This would work well for your use case. Here is a guide for using the nRF Cloud API from your proxy server. The firmware would be custom. 

    An alternative is to use nRF Cloud location history API from your portal. nRF Cloud tracks your device's location history and makes it available via the location history API endpoint. This would sidestep the need to send this data to your servers. 

    Hope this helps!

    Cole

  •  

    Thank you for your response—I wasn’t aware of the Location History API.

    I have a question regarding C2C. Is it possible to separate the CELL and Wi-Fi data so they go through the proxy, while allowing the GNSS portion to use a direct request?

    I’m wondering if we can configure the library to collect only Wi-Fi and CELL data, and then, for example, respond to the library with:

    location_cloud_location_ext_result_set(LOCATION_EVT_RESULT_UNKNOWN)

    once the collection is done. However, doing this seems to require enabling CONFIG_LOCATION_SERVICE_EXTERNAL, which would then force all A-GPS requests through the proxy as well. Is that correct?

Reply
  •  

    Thank you for your response—I wasn’t aware of the Location History API.

    I have a question regarding C2C. Is it possible to separate the CELL and Wi-Fi data so they go through the proxy, while allowing the GNSS portion to use a direct request?

    I’m wondering if we can configure the library to collect only Wi-Fi and CELL data, and then, for example, respond to the library with:

    location_cloud_location_ext_result_set(LOCATION_EVT_RESULT_UNKNOWN)

    once the collection is done. However, doing this seems to require enabling CONFIG_LOCATION_SERVICE_EXTERNAL, which would then force all A-GPS requests through the proxy as well. Is that correct?

Children
No Data
Related