<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Problem with function modem_info_params_get() in TN/NTN usecase</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126578/problem-with-function-modem_info_params_get-in-tn-ntn-usecase</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Mar 2026 10:11:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126578/problem-with-function-modem_info_params_get-in-tn-ntn-usecase" /><item><title>RE: Problem with function modem_info_params_get() in TN/NTN usecase</title><link>https://devzone.nordicsemi.com/thread/563007?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2026 10:11:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:791d45d6-4817-409f-a829-a909a86b5cc7</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote userid="136217" url="~/f/nordic-q-a/126578/problem-with-function-modem_info_params_get-in-tn-ntn-usecase/563005"]What about the error&amp;nbsp;&amp;quot;modem_info_params: Link data not obtained: 21 -134&amp;quot; ?[/quote]
&lt;p&gt;This is due to the APN not being connected or obtained at the time of parsing.&lt;/p&gt;
&lt;p&gt;This could be due to the response time of the APN itself, or that the link quality is weak (low signal strength) - one of your logs shows a RSRP of -120 dBm, which is very low.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with function modem_info_params_get() in TN/NTN usecase</title><link>https://devzone.nordicsemi.com/thread/563005?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2026 10:06:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b813ae6a-df15-47b5-987a-76635f8a19c6</guid><dc:creator>GoncaloS</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;So, what can we do when these errors appear? What about the error&amp;nbsp;&amp;quot;modem_info_params: Link data not obtained: 21 -134&amp;quot; ?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Regards,&lt;br /&gt;GoncaloS&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with function modem_info_params_get() in TN/NTN usecase</title><link>https://devzone.nordicsemi.com/thread/562997?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2026 08:23:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8538487d-afb4-4310-a2f5-c666c2ab4c8e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi GoncaloS,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I checked with R&amp;amp;D, and confirmed that the ESM/EMM cause codes that you are seeing is very similar in NTN as they are in &amp;quot;normal&amp;quot; LTE-M or NB-IoT mode.&lt;/p&gt;
&lt;p&gt;The cause code of 38 indicates:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Cause #38 – Network failure

      This ESM cause is used by the network to indicate that the requested service was rejected due to an error situation in the network.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The UE in this case is only the messenger, and cannot actively tell anything else than to relay the ESM/EMM cause code it receives from the network. If this is a situation that occurs often, please let the network provider&amp;nbsp;know about this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with function modem_info_params_get() in TN/NTN usecase</title><link>https://devzone.nordicsemi.com/thread/562894?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2026 09:28:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66e337f5-0d69-4c17-af0f-5771091788b9</guid><dc:creator>GoncaloS</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;I am using a Monogoto SIM Card. On the Monogoto management page, I can see the following:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;// Failed Connection
28-Feb-2026 16:43:00 | Event=HSS_ULR | Operator=Skylo NTN Technologies | MME=core02.prod-eu.epc.mnc098.mcc901.3gppnetwork.org
28-Feb-2026 16:43:00 | Event=HSS_ULA | Result=SUCCESS | Operator=Skylo NTN Technologies 

// Successful connection
28-Feb-2026 13:47:11 | Event=HSS_ULR | Operator=Skylo NTN Technologies | MME=core02.prod-eu.epc.mnc098.mcc901.3gppnetwork.org
28-Feb-2026 13:47:11 | Event=HSS_ULA | Result=SUCCESS | Operator=Skylo NTN Technologies 
28-Feb-2026 13:47:16 | Event=GGSN_AUTHENTICATE_PDP_CONTENT | Operator=Skylo NTN Technologies | Action=authenticate_pdp_context v2 | SGSN=10.99.5.199 | RAI=null | AllowedBytes=20971520
28-Feb-2026 13:47:16 | Event=GGSN_AUTHENTICATE_PDP_CONTENT_RESULT | Result=SUCCESS | Operator=Skylo NTN Technologies | SessionID=1223969419 | AllowedBytes=20971520 | IP=10.137.22.230
28-Feb-2026 13:48:12 | Event=DATA | Operator=Skylo NTN Technologies | SessionID=2.40076E+14 | Usage=412 bytes
28-Feb-2026 13:48:12 | Event=GGSN_DELETE_PDP_CONTENT | Operator=Skylo NTN Technologies | Action=delete_pdp_context | SessionID=1223969419 | Upload=314 | Download=98 | Total=412 | IP=10.137.22.230 | InitialTime=28/02/2026 13:47 | Cause=User Request&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I talked with them, and they said that on their side, there is no limitations on the NTN network.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;GoncaloS&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with function modem_info_params_get() in TN/NTN usecase</title><link>https://devzone.nordicsemi.com/thread/562891?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2026 09:13:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb3906a4-d447-42d7-a489-e72f400fda99</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi GoncaloS,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which SIM card / telecom vendor are you using for connection towards GEO/LEO?&lt;/p&gt;
&lt;p&gt;As mentioned, it seems that the NTN network you&amp;#39;re connecting to, or have coverage for in your area, is rejecting your attach.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with function modem_info_params_get() in TN/NTN usecase</title><link>https://devzone.nordicsemi.com/thread/562739?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2026 14:51:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7163daf9-fe8f-41d0-934b-65691c48c9f5</guid><dc:creator>GoncaloS</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;Yes, I tried to follow the guide available NTN guide and only used the available functions for the NTN configuration instead AT commands. The configurations I did at the start of the code are included in my last reply. After that, I only connected to LTE and NTN using the commands i Had already sent. Both errors occur randomly, but most of the time it works without problems. Could these errors be caused by a bug in the PDN configuration for more than one profile ?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;GoncaloS&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with function modem_info_params_get() in TN/NTN usecase</title><link>https://devzone.nordicsemi.com/thread/562737?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2026 14:27:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2db3d49c-0a55-4dbc-8b8c-359dc4dc1780</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;GoncaloS,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My apologies for the late reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The error:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;modem_info_params: Link data not obtained: 21 -134&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;is emitted when the context is not up.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The second log shows ESM/EMM cause codes:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;16:05:18.957 [02:26:42.023,773] &#x1B;[1;31m&amp;lt;err&amp;gt; main: ESM Error - Code: 38&#x1B;[0m
16:05:18.962 [02:26:42.024,078] &#x1B;[1;33m&amp;lt;wrn&amp;gt; lte_lc: Registration rejected, EMM cause: 19, Cell ID: 2004020, Tracking area: 4020, LTE mode: 14&#x1B;[0m&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you followed the getting started, as Øyvind pointed towards?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Håkon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with function modem_info_params_get() in TN/NTN usecase</title><link>https://devzone.nordicsemi.com/thread/562486?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2026 23:25:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e9eb707-d623-4d3c-af28-cd0b9eb477e2</guid><dc:creator>GoncaloS</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/oys"&gt;Øyvind&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;Do you have any updates about this issue? Attached to this comment, I will attach a file with the modem configuration that is done when the program starts.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/config_5F00_functions.c"&gt;devzone.nordicsemi.com/.../config_5F00_functions.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After that, I use the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// For enable/change for LTE
lte_lc_func_mode_set(LTE_LC_FUNC_MODE_OFFLINE);
lte_lc_system_mode_set(LTE_LC_SYSTEM_MODE_LTEM_GPS, LTE_LC_SYSTEM_MODE_PREFER_AUTO);
lte_lc_func_mode_set(LTE_LC_FUNC_MODE_NORMAL);

// For enable/change for NTN
lte_lc_func_mode_set(LTE_LC_FUNC_MODE_OFFLINE);
lte_lc_system_mode_set(LTE_LC_SYSTEM_MODE_NTN_NBIOT, LTE_LC_SYSTEM_MODE_PREFER_AUTO);
ntn_location_set(latitude, longitude, altitude, 0);
lte_lc_func_mode_set(LTE_LC_FUNC_MODE_NORMAL);
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;The ESM error 38 occurs randomly, sometimes with a signal considered good enough to connect to the network, and then the error occurs.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Other times, I am also unable the modem parameters, and the error &amp;quot;modem_info_params: Link data not obtained: 21 -134&amp;quot; occurs (this occurs a few hours after program the board). This error is also random, with no pattern causing it to occur.&lt;br /&gt;&lt;br /&gt;In both errors, it seems to me that the error may be related to the configuration of the PDP contexts, in which these errors may occur some time after the application starts running.&lt;br /&gt;&lt;br /&gt;Can you confirm that my configs are correct? Have you encountered any errors of this kind on your end? What can I do to try to resolve these errors?&lt;br /&gt;&lt;br /&gt;Thanks for help.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;GoncaloS&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with function modem_info_params_get() in TN/NTN usecase</title><link>https://devzone.nordicsemi.com/thread/562264?ContentTypeID=1</link><pubDate>Sun, 01 Mar 2026 16:35:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bddd1457-2389-472c-9f8f-8876672468d3</guid><dc:creator>GoncaloS</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/oys"&gt;Øyvind&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p data-start="71" data-end="193"&gt;Sorry for the delayed response, but I needed to run some additional tests to verify whether the issue would occur again.&lt;br /&gt;I performed further testing, and the error does not appear consistently. Below are some logs from my application:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;// Error -134, modem_info_params_get() with LTE
[23:50:28.978,240] &#x1B;[1;33m&amp;lt;wrn&amp;gt; main: --ST_CONNECT--&#x1B;[0m
[23:50:28.998,565] &#x1B;[0m&amp;lt;inf&amp;gt; main: Vbat: 100% (5.2 V)&#x1B;[0m
[23:50:28.999,450] &#x1B;[0m&amp;lt;inf&amp;gt; main: MODE_OFFLINE set&#x1B;[0m
[23:50:29.000,579] &#x1B;[0m&amp;lt;inf&amp;gt; main: SYSTEM_MODE_LTEM_GPS set&#x1B;[0m
[23:50:29.000,579] &#x1B;[0m&amp;lt;inf&amp;gt; main: Connecting to LTE network...&#x1B;[0m
[23:50:29.041,961] &#x1B;[0m&amp;lt;inf&amp;gt; main: MODE_NORMAL set&#x1B;[0m
[23:50:30.377,868] &#x1B;[0m&amp;lt;inf&amp;gt; main: UE is currently trying to attach or searching ...&#x1B;[0m
[23:50:34.725,128] &#x1B;[0m&amp;lt;inf&amp;gt; main: PDN connection activated&#x1B;[0m
[23:50:34.826,080] &#x1B;[0m&amp;lt;inf&amp;gt; main: Registered, roaming&#x1B;[0m
[23:50:34.826,385] &#x1B;[0m&amp;lt;inf&amp;gt; main: LTE_LC_MODEM_EVT_SEARCH_DONE&#x1B;[0m
[23:50:34.826,538] &#x1B;[0m&amp;lt;inf&amp;gt; main: Connected to LTE network&#x1B;[0m
[23:50:34.826,568] &#x1B;[0m&amp;lt;inf&amp;gt; main: Time to connect: 5.8 s&#x1B;[0m
[23:50:34.836,944] &#x1B;[1;31m&amp;lt;err&amp;gt; modem_info_params: Link data not obtained: 21 -134&#x1B;[0m
[23:50:34.836,944] &#x1B;[1;31m&amp;lt;err&amp;gt; main: Error -134, modem_info_params_get&#x1B;[0m

[23:50:34.837,097] &#x1B;[1;33m&amp;lt;wrn&amp;gt; main: --ST_SEND_DATA--&#x1B;[0m
[23:50:34.837,127] &#x1B;[0m&amp;lt;inf&amp;gt; main: Create the socket&#x1B;[0m
[23:50:34.837,738] &#x1B;[0m&amp;lt;inf&amp;gt; main: Connect the socket to the server&#x1B;[0m

[23:50:34.838,043] &#x1B;[0m&amp;lt;inf&amp;gt; main: [SEND DATA - INTERNAL DATA]&#x1B;[0m
[23:50:34.838,104] &#x1B;[0m&amp;lt;inf&amp;gt; main: Total Size (buffer2send): 247 bytes&#x1B;[0m
[23:50:34.838,104] &#x1B;[0m&amp;lt;inf&amp;gt; main: Sending data...&#x1B;[0m
[23:50:34.839,385] &#x1B;[0m&amp;lt;inf&amp;gt; main: Sent 247 bytes&#x1B;[0m
[23:50:35.936,828] &#x1B;[0m&amp;lt;inf&amp;gt; main: Received 21 bytes&#x1B;[0m
[23:50:35.936,920] &#x1B;[0m&amp;lt;inf&amp;gt; main: Time to send+recv pck: 1.098 s&#x1B;[0m
[23:50:35.936,950] &#x1B;[0m&amp;lt;inf&amp;gt; main: Sent all data&#x1B;[0m
[23:50:36.345,977] &#x1B;[0m&amp;lt;inf&amp;gt; main: MODE_OFFLINE set&#x1B;[0m



// Without error with LTE
[22:39:30.886,291] &#x1B;[1;33m&amp;lt;wrn&amp;gt; main: --ST_CONNECT--&#x1B;[0m
[22:39:30.906,616] &#x1B;[0m&amp;lt;inf&amp;gt; main: Vbat: 100% (5.2 V)&#x1B;[0m
[22:39:30.907,501] &#x1B;[0m&amp;lt;inf&amp;gt; main: MODE_OFFLINE set&#x1B;[0m
[22:39:30.908,630] &#x1B;[0m&amp;lt;inf&amp;gt; main: SYSTEM_MODE_LTEM_GPS set&#x1B;[0m
[22:39:30.908,630] &#x1B;[0m&amp;lt;inf&amp;gt; main: Connecting to LTE network...&#x1B;[0m
[22:39:30.949,981] &#x1B;[0m&amp;lt;inf&amp;gt; main: MODE_NORMAL set&#x1B;[0m
[22:39:32.284,179] &#x1B;[0m&amp;lt;inf&amp;gt; main: UE is currently trying to attach or searching ...&#x1B;[0m
[22:39:36.019,439] &#x1B;[0m&amp;lt;inf&amp;gt; main: PDN connection activated&#x1B;[0m
[22:39:36.120,391] &#x1B;[0m&amp;lt;inf&amp;gt; main: Registered, roaming&#x1B;[0m
[22:39:36.120,666] &#x1B;[0m&amp;lt;inf&amp;gt; main: LTE_LC_MODEM_EVT_SEARCH_DONE&#x1B;[0m
[22:39:36.120,849] &#x1B;[0m&amp;lt;inf&amp;gt; main: Connected to LTE network&#x1B;[0m
[22:39:36.120,880] &#x1B;[0m&amp;lt;inf&amp;gt; main: Time to connect: 5.2 s&#x1B;[0m
[22:39:36.159,729] &#x1B;[0m&amp;lt;inf&amp;gt; main: IP: 10.137.22.228; RSRP: -120dBm; Cell ID: 580621; TAC: 48720; Op: 26806; TimeDate: 26/03/01,09:43:05+00&#x1B;[0m
[22:39:36.159,759] &#x1B;[0m&amp;lt;inf&amp;gt; main: Band: 20; Supported bands: (8,20)&#x1B;[0m

[22:39:36.160,186] &#x1B;[1;33m&amp;lt;wrn&amp;gt; main: --ST_SEND_DATA--&#x1B;[0m
[22:39:36.160,217] &#x1B;[0m&amp;lt;inf&amp;gt; main: Create the socket&#x1B;[0m
[22:39:36.160,644] &#x1B;[0m&amp;lt;inf&amp;gt; main: Connect the socket to the server&#x1B;[0m

[22:39:36.160,980] &#x1B;[0m&amp;lt;inf&amp;gt; main: [SEND DATA - INTERNAL DATA]&#x1B;[0m
[22:39:36.161,041] &#x1B;[0m&amp;lt;inf&amp;gt; main: Total Size (buffer2send): 215 bytes&#x1B;[0m
[22:39:36.161,041] &#x1B;[0m&amp;lt;inf&amp;gt; main: Sending data...&#x1B;[0m
[22:39:36.162,200] &#x1B;[0m&amp;lt;inf&amp;gt; main: Sent 215 bytes&#x1B;[0m
[22:39:37.140,319] &#x1B;[0m&amp;lt;inf&amp;gt; main: Received 21 bytes&#x1B;[0m
[22:39:37.140,411] &#x1B;[0m&amp;lt;inf&amp;gt; main: Time to send+recv pck: 0.979 s&#x1B;[0m
[22:39:37.140,472] &#x1B;[0m&amp;lt;inf&amp;gt; main: Sent all data&#x1B;[0m
[22:39:37.491,485] &#x1B;[0m&amp;lt;inf&amp;gt; main: MODE_OFFLINE set&#x1B;[0m&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;In this application, data transmission to the server occurs mostly over LTE, but occasionally some data is sent via NTN. From time to time, some NTN errors also occur, and I am not sure whether they might be related to the error in the &lt;code data-start="316" data-end="335"&gt;modem_info_params&lt;/code&gt; function. Based on the analysis of my logs, the error in the &lt;code data-start="397" data-end="418"&gt;modem_info_params()&lt;/code&gt; function occurs only when using LTE. Below are the errors I am encountering with NTN:&lt;/p&gt;
&lt;p data-start="71" data-end="193"&gt;&lt;pre class="ui-code" data-mode="text"&gt;16:05:14.920 [02:26:36.997,619] &#x1B;[0m&amp;lt;inf&amp;gt; main: %XMONITOR: 2
16:05:14.922 OK
16:05:14.926 &#x1B;[0m
16:05:14.926 [02:26:36.998,321] &#x1B;[0m&amp;lt;inf&amp;gt; main: +CEREG: 5,2,&amp;quot;0FB4&amp;quot;,&amp;quot;001E9434&amp;quot;,14
16:05:14.931 OK
16:05:14.931 &#x1B;[0m
16:05:16.926 [02:26:39.007,904] &#x1B;[0m&amp;lt;inf&amp;gt; main: %SQP: -124,-9,4,-115
16:05:16.928 OK
16:05:16.932 &#x1B;[0m
16:05:16.932 [02:26:39.008,789] &#x1B;[0m&amp;lt;inf&amp;gt; main: %XMONITOR: 2
16:05:16.934 OK
16:05:16.935 &#x1B;[0m
16:05:16.935 [02:26:39.009,490] &#x1B;[0m&amp;lt;inf&amp;gt; main: +CEREG: 5,2,&amp;quot;0FB4&amp;quot;,&amp;quot;001E9434&amp;quot;,14
16:05:16.941 OK
16:05:16.942 &#x1B;[0m
16:05:18.936 [02:26:41.019,073] &#x1B;[0m&amp;lt;inf&amp;gt; main: %SQP: -123,-8,4,-115
16:05:18.942 OK
16:05:18.942 &#x1B;[0m
16:05:18.943 [02:26:41.019,958] &#x1B;[0m&amp;lt;inf&amp;gt; main: %XMONITOR: 2
16:05:18.947 OK
16:05:18.947 &#x1B;[0m
16:05:18.947 [02:26:41.020,660] &#x1B;[0m&amp;lt;inf&amp;gt; main: +CEREG: 5,2,&amp;quot;0FB4&amp;quot;,&amp;quot;001E9434&amp;quot;,14
16:05:18.955 OK
16:05:18.955 &#x1B;[0m
16:05:18.957 [02:26:42.023,773] &#x1B;[1;31m&amp;lt;err&amp;gt; main: ESM Error - Code: 38&#x1B;[0m
16:05:18.962 [02:26:42.024,078] &#x1B;[1;33m&amp;lt;wrn&amp;gt; lte_lc: Registration rejected, EMM cause: 19, Cell ID: 2004020, Tracking area: 4020, LTE mode: 14&#x1B;[0m
16:05:42.178 [02:27:05.135,040] &#x1B;[0m&amp;lt;inf&amp;gt; main: Timeout - connecting NTN&#x1B;[0m
16:05:42.184 [02:27:05.135,101] &#x1B;[0m&amp;lt;inf&amp;gt; main: Time to try connect: 120.4 s&#x1B;[0m&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p data-start="71" data-end="193"&gt;Below is modem_info_get()&amp;nbsp; and modem_data_get() functions:&lt;/p&gt;
&lt;p data-start="71" data-end="193"&gt;&lt;pre class="ui-code" data-mode="text"&gt;void modem_info_get(void){
    int err = modem_info_params_get(&amp;amp;modem_param);
	if(err != 0){
		LOG_ERR(&amp;quot;Error %d, modem_info_params_get&amp;quot;, err);
	}
	else{
		LOG_INF(&amp;quot;IP: %s; RSRP: %ddBm; Cell ID: %d; TAC: %d; Op: %s; TimeDate: %s&amp;quot;, modem_param.network.ip_address.value_string, 
			RSRP_IDX_TO_DBM(modem_param.network.rsrp.value), (uint32_t)modem_param.network.cellid_dec, modem_param.network.area_code.value, 
			modem_param.network.current_operator.value_string, modem_param.network.date_time.value_string); 
		LOG_INF(&amp;quot;Band: %d; Supported bands: %s&amp;quot;, modem_param.network.current_band.value, modem_param.network.sup_band.value_string);
	}
}&lt;/pre&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;static int modem_data_get(struct lte_param *param)
{
	enum modem_info_data_type data_type;
	int ret;

	data_type = modem_info_data_type_get(param-&amp;gt;type);

	if (data_type == MODEM_INFO_DATA_TYPE_INVALID) {
		return -EINVAL;
	}

	if (data_type == MODEM_INFO_DATA_TYPE_STRING) {
		ret = modem_info_string_get(param-&amp;gt;type,
				param-&amp;gt;value_string,
				sizeof(param-&amp;gt;value_string));
		if (ret &amp;lt; 0) {
			LOG_ERR(&amp;quot;Link data not obtained: %d %d&amp;quot;, param-&amp;gt;type, ret);
			return ret;
		}
	} else if (data_type == MODEM_INFO_DATA_TYPE_NUM_INT) {
		ret = modem_info_short_get(param-&amp;gt;type, &amp;amp;param-&amp;gt;value);
		if (ret &amp;lt; 0) {
			LOG_ERR(&amp;quot;Link data not obtained: %d&amp;quot;, ret);
			return ret;
		}
	}

	return 0;
}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Could you please help me understand what might be causing this issue?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;GoncaloS&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with function modem_info_params_get() in TN/NTN usecase</title><link>https://devzone.nordicsemi.com/thread/559015?ContentTypeID=1</link><pubDate>Mon, 19 Jan 2026 12:46:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08becc10-a6c1-4885-b87d-0a16f9a3e7cf</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;GoncaloS, could you please provide a modem trace and full application log of your issue? What application are you running on your side? Do you have a nRF9151 SMA DK do test with? Have you followed the steps provided in&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nRF9151-SMA-DK/Evaluate-NTN?lang=en#infotabs"&gt;Evalute NTN on nRF9151 SMA DK product page&lt;/a&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As the instructed in the latter link, please test with the provided application.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>