You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lib: lte_link_control: Add support for environment evaluation
Added support for environment evaluation using the %ENVEVAL AT
command introduced in nRF91x1 modem firmware v2.0.3.
Signed-off-by: Tommi Kangas <[email protected]>
The :kconfig:option:`CONFIG_LTE_LC_DNS_FALLBACK_MODULE` Kconfig option controls the use of a fallback DNS server address.
152
152
153
153
The device might or might not receive a DNS server address by the network during a PDN connection.
@@ -158,6 +158,13 @@ DNS fallback:
158
158
If the application has configured a DNS server address in Zephyr's native networking stack using the :kconfig:option:`CONFIG_DNS_SERVER1` Kconfig option, the same server is set as the fallback address for DNS queries offloaded to the nRF91 Series modem.
159
159
Otherwise, the :kconfig:option:`CONFIG_LTE_LC_DNS_FALLBACK_ADDRESS` Kconfig option controls the fallback DNS server address that is set to Cloudflare's DNS server: 1.1.1.1 by default.
160
160
161
+
Environment Evaluation:
162
+
Use the :kconfig:option:`CONFIG_LTE_LC_ENV_EVAL_MODULE` Kconfig option to enable the following functionalities related to Environment Evaluation:
For more information on the callback events received in :c:type:`lte_lc_evt_handler_t` and data associated with each event, see the documentation on :c:struct:`lte_lc_evt`.
162
169
For more information on the functions and data associated with each, refer to the API documentation.
163
170
@@ -254,6 +261,20 @@ To enable modem sleep and TAU pre-warning notifications, use the following optio
254
261
255
262
For additional configurations related to these features, see the API documentation.
256
263
264
+
Environment evaluation
265
+
======================
266
+
267
+
Modem firmware mfw_nrf91x1 v2.0.3 and higher, and mfw_nrf9151-ntn support environment evaluation.
268
+
Environment evaluation allows the application to evaluate available PLMNs and select the best PLMN to use before connecting to the network.
269
+
This is useful especially in cases where the device has multiple SIMs or SIM profiles to select from.
270
+
271
+
Environment evaluation can only be performed in *receive only* functional mode.
272
+
During the environment evaluation, the device searches for the best cell for each PLMN.
273
+
274
+
The :c:func:`lte_lc_env_eval` function starts the environment evaluation for the given PLMNs.
275
+
When the environment evaluation is complete, an :c:enumerator:`LTE_LC_EVT_ENV_EVAL_RESULT` event with the evaluation results is received.
276
+
For each found PLMN, the :c:struct:`lte_lc_conn_eval_params` structure is populated with the evaluation results.
0 commit comments