<?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>Differences bewteen controlling the modem via AT commands and calling the Modem lbraries APIs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111459/differences-bewteen-controlling-the-modem-via-at-commands-and-calling-the-modem-lbraries-apis</link><description>Hello nRF team. Is there any different bewteen passing AT command and directly calling the Modem lbraries APIs(from nRF Connect SDK v2.5.2) to control the modem? For example, changing the modem function mode via +CFUN with Serial LTE modem/AT client application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 May 2024 11:25:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111459/differences-bewteen-controlling-the-modem-via-at-commands-and-calling-the-modem-lbraries-apis" /><item><title>RE: Differences bewteen controlling the modem via AT commands and calling the Modem lbraries APIs</title><link>https://devzone.nordicsemi.com/thread/485793?ContentTypeID=1</link><pubDate>Fri, 24 May 2024 11:25:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fab3269a-eebc-4926-91f7-ac375b766e43</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
[quote user=""]Is there any&amp;nbsp;different bewteen passing AT command and directly calling the Modem lbraries APIs(from nRF Connect SDK v2.5.2) to control the modem?&lt;br /&gt; For example, changing the modem &lt;span&gt;function mode via &lt;span style="background-color:rgba(128, 128, 128, 1);color:rgba(255, 255, 255, 1);"&gt;+CFUN&lt;/span&gt;&amp;nbsp;with Serial LTE modem/AT client application and calling APIs&amp;nbsp;&lt;span style="background-color:rgba(128, 128, 128, 1);color:rgba(255, 255, 255, 1);"&gt;lte_lc_func_mode_set&lt;/span&gt;&lt;span style="color:rgba(0, 0, 0, 1);"&gt;. &lt;br /&gt;How are&amp;nbsp;the APIs implemented to control the modem?&lt;br /&gt;Is the&amp;nbsp;behaviour consistent between two approach?&lt;/span&gt;&lt;/span&gt;[/quote]
&lt;p&gt;Yes, it&amp;#39;s similar.&amp;nbsp;In the case of&amp;nbsp;&lt;span&gt;lte_lc_func_mode_set, and other similar functions, it uses&amp;nbsp;nrf_modem_at_printf() to send the AT-command. You can read about it here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_modem/doc/at_interface.html#sending-at-commands"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_modem/doc/at_interface.html#sending-at-commands&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>