Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: location: Add support for GCI cell #11549

Merged
merged 2 commits into from
Jun 28, 2023
Merged

Conversation

trantanen
Copy link
Contributor

@trantanen trantanen commented Jun 16, 2023

Support added for GCI (surrounding) cells in cellular positioning. NCELLMEAS=2 is used by default. If we don’t find X cells, do NCELLMEAS=4,Y, where Y=5-X.

X is requested cell count and run-time configurable through cell_count member of struct location_cellular_config and build time configurable through CONFIG_LOCATION_REQUEST_DEFAULT_CELLULAR_CELL_COUNT.

Cellular timeout will change to apply only for NCELLMEAS operation ignoring the cloud communication. Same change for Wi-Fi timeout.

GCI search can be disabled completely by setting CONFIG_LOCATION_REQUEST_DEFAULT_CELLULAR_CELL_COUNT=0

Jira: NCSDK-21877

@github-actions github-actions bot added the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Jun 16, 2023
@NordicBuilder
Copy link
Contributor

You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds.

Note: This comment is automatically posted by the Documentation Publishing GitHub Action.

@NordicBuilder
Copy link
Contributor

NordicBuilder commented Jun 19, 2023

Test specification

CI/Jenkins/NRF

  • Integration Platforms

CI/Jenkins/integration

Test Module File based changes Manually selected West overwrite
test-ci-nrfconnect-boot-fw-update X
test-fw-nrfconnect-nrf-iot_lwm2m X
test-fw-nrfconnect-nrf-iot_mosh X
test-fw-nrfconnect-nrf-iot_positioning X
test-fw-nrfconnect-nrf-iot_samples X
test-fw-nrfconnect-nrf-iot_zephyr_lwm2m X

Detailed information of selected test modules

Note: This message is automatically posted and updated by the CI

@github-actions github-actions bot added the doc-required PR must not be merged without tech writer approval. label Jun 20, 2023
@github-actions github-actions bot removed the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Jun 20, 2023
include/modem/location.h Outdated Show resolved Hide resolved
include/modem/location.h Outdated Show resolved Hide resolved
include/modem/location.h Outdated Show resolved Hide resolved
lib/location/method_cloud_location.c Show resolved Hide resolved
lib/location/scan_cellular.c Outdated Show resolved Hide resolved
lib/location/scan_cellular.c Outdated Show resolved Hide resolved
samples/nrf9160/modem_shell/src/location/location_shell.c Outdated Show resolved Hide resolved
doc/nrf/libraries/modem/location.rst Outdated Show resolved Hide resolved
doc/nrf/releases/release-notes-changelog.rst Outdated Show resolved Hide resolved
include/modem/location.h Outdated Show resolved Hide resolved
include/modem/location.h Outdated Show resolved Hide resolved
include/modem/location.h Outdated Show resolved Hide resolved
lib/lte_link_control/lte_lc.c Outdated Show resolved Hide resolved
lib/location/location_core.h Outdated Show resolved Hide resolved
lib/lte_link_control/lte_lc.c Outdated Show resolved Hide resolved
Support added for GCI (surrounding) cells in cellular positioning.
NCELLMEAS=2 is used by default. If we don’t find X cells,
do NCELLMEAS=4,Y, where Y=5-X.
X is requested cell count and run-time configurable through
cell_count member of struct location_cellular_config and
build time configurable through
CONFIG_LOCATION_REQUEST_DEFAULT_CELLULAR_CELL_COUNT.

Cellular timeout will change to apply only for NCELLMEAS
operation ignoring the cloud communication.
Same change for Wi-Fi timeout.

GCI search can be disabled completely by setting
CONFIG_LOCATION_REQUEST_DEFAULT_CELLULAR_CELL_COUNT=0

Jira: NCSDK-21877

Signed-off-by: Tommi Rantanen <tommi.rantanen@nordicsemi.no>
We need to protect execution of AT%NCELLMEAS with a semaphore.
Otherwise a client that calls new lte_lc_neighbor_cell_measurement()
right after receiving LTE_LC_EVT_NEIGHBOR_CELL_MEAS event,
may get -EINPROGRESS error code even though AT%NCELLMEAS
notification had been received.

Signed-off-by: Tommi Rantanen <tommi.rantanen@nordicsemi.no>
@github-actions github-actions bot added the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Jun 28, 2023
@rlubos rlubos merged commit ad7f2d6 into nrfconnect:main Jun 28, 2023
17 checks passed
@trantanen trantanen deleted the loclib_gci branch November 2, 2023 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. doc-required PR must not be merged without tech writer approval.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants