Hello,
I am getting an error with the modem_info_params_get() function when I try to get the modem parameters. I am currently using SDK 3.2.0 with the FW MFW_nRF9151-NTN_v1.0.0-1.prealpha modem. In the code, I have TN and NTN configured where the PDN has been configured as follows:
uint8_t cid_tn = 10, cid_ntn = 0;
err = lte_lc_pdn_ctx_configure(cid_tn, "APN", LTE_LC_PDN_FAM_IPV4, NULL);
if (err) {
LOG_ERR("Error to configure CID_TN: %d", err);
return err;
}
err = lte_lc_pdn_ctx_configure(cid_ntn, "APN", LTE_LC_PDN_FAM_IPV4, NULL);
if (err) {
LOG_ERR("Error to configure CID_NTN: %d", err);
return err;
}
The error message is as follows:
[00:00:07.766,845] <err> modem_info_params: Link data not obtained: 21 -134 [00:00:07.766,845] <err> main: Error -134, modem_info_params_get
The value 21 corresponds to MODEM_INFO_APN (access point name) from the modem_info enum. I used this function on TN-only devices and had no problems. Is this function not yet supported in cases where the device has two APNs (one for TN and one for NTN)?
Regards,
GoncaloS